Re: On creating a new node from an existing node, (fwd)

Park SungWoo (gladius@compiler.kaist.ac.kr)
Sun, 25 May 1997 15:46:54 +0900 (KST)

Stephan sent this mail to me, and requested me to forward this
message to our working group. He seems to have no cc option.

As Stephan Diehl [GK] wrote:
> To: gladius@compiler.kaist.ac.kr
> Subject: Re: On creating a new node from an existing node,
>
> The trick in Amulet is that they create a new node,
> but share the values. Once a value is changed in
> the copy then it does no longer change the value
> (depending on the mode of the field: COPY, SHARE, ...).
>
> I think that
>
> DEF X ...
> DEF X1 X { A 1. 1. 1. # overrides A in X
> ...
> }
> DEF X2 X { B 0. 0. 0. # overrides B in X
> ...
> }
>
> is the same as
>
> CLASS X ...
>
> X { }
>
> CLASS X1
> { X { A 1. 1. 1. ... } }
>
> X1 { }
>
> So this case can be easily handeled by the preprocessor
> once we have implemented classes.
>
> Cheers
>

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 Sungwoo Park, (Castle-Help Naive)
	homepage : http://compiler.kaist.ac.kr/~gladius
 	e-mail : gladius@compiler.kaist.ac.kr
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -