Re: 'Const' keyword,

Jean-Francis Balaguer (balaguer@artemedia.ch)
Wed, 16 Jul 1997 13:26:05 +0200

Stephan Diehl wrote:
>
> Park SungWoo wrote:
> >
> > Hi,
> >
> > What do you think about 'CONST' keyword for fields ???
> > This keyword could be used to designate fields whose values
> > cannot be changed when creating nodes.
>
> How would it be implemented. Would a preprocessor replace
> all occurrences by the value of the CONST field? In this
> case, the CONST field would not be accessible at
> runtime. So I think, it could be added, but it is
> of minor importance. Should we add expressions like 8*10+pi/2 ?
> I think, this should not be our focus at the moment.
>

Normally that is the difference between field and exposedField
in VRML. Field is private and cannot be set after creation while
exposedField is public and can be changed with scripts or EAI.