[REBOL] Re: ANN: custom-types.r
From: brett:codeconscious at: 15-Mar-2003 15:22
> In an earlier example you showed:
> i: to complex! [0 1]
> which does not seem to work (I know the make method works) - just
> if how To is to be used?
Looking further into the patched To function, I think this is something to
do with type?* and the way it processes its parameter.
A different question. Now that the patched actions are in Actions* and
suffixed by * at the global level, what are good ways to write application
code when taking advantage of custom types?
E.g is this a good way?
v1: make complex! [x: 0 y: 1]
v2: make complex! [x: 0.5 y: -1]
result: add v1 v2
do bind my-code-using-custom-types in actions* 'self