[REBOL] Re: steel... update... of the week (for more advanced rebolers)
From: maximo:meteorstudios at: 25-Jun-2003 15:34
> -----Original Message-----
> From: Gabriele Santilli [mailto:[g--santilli--tiscalinet--it]]
> MOA> here is a short code snippet:
> I have something similar, probably much simpler (I only needed
liquid stems from a notification class I built a few weeks ago. but the liquify command
has very powerfull private initialisation methods, which are new and added to the standard
make workflow. Each instance can ADD initialisation stuff, which will be recursively
called. This basically means that if you base objects on other objects, the master's
intialisation stays private and still does iteslf, even if you define your own init as
none !!! :-). Each function can ALSO have a public init which basically gets overwritten
as normal by the instance of an another object.
> BTW, your code screams for a dialect.Or, maybe, a custom
> type... :))
Well, liquify does scan the spec block and does magic with it... you coulds say that
its is a tiny dialect which parasites make. ;-)
If you do not use liquid in vid, like for the recipient I used in the code, the use is
extremely short and sweet (all initialisation is done invisibly, as explained above right
in liquify). ;-)
> MOA> tmp: text
> MOA> do [ tmp/attach pipe]
> Do you need to call attach after init? Otherwise, you could just:
yes, cause attach executes code to link to the notification master .
> text with [attach pipe]
but does the "with" block really EXECUTE the block or does it just pass it to the make
 call... I thought the later (which would make the "do" a little more pointfull).
If the "with" executes the code, what word holds the value of the face being created?
> or, if you add ATTACH to the words block of each style (or add it
> to LAYOUT...),
> text attach pipe
... I guess I could patch the vid block and add a word to it so that it is recognized
as a an internal facet... but is the invested time worth it if it means glass will be
delayed a week or two because of it... I'll have to check if its easy or not...
Thanks for the ideas and comments...