Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: steel... update... of the week (for more advanced rebolers)

From: g:santilli:tiscalinet:it at: 26-Jun-2003 14:23

Hi Maxim, On Wednesday, June 25, 2003, 9:34:22 PM, you wrote: MOA> standard make workflow. Each instance can ADD initialisation MOA> stuff, which will be recursively called. This basically means MOA> that if you base objects on other objects, the master's MOA> intialisation stays private and still does iteslf, even if MOA> you define your own init as none !!! :-). Going to reinvent class-based OOP? ;-) MOA> yes, cause attach executes code to link to the notification master . Ok, but does it need to be linked AFTER the code in face/init has been called by LAYOUT? MOA> but does the "with" block really EXECUTE the block or does it MOA> just pass it to the make [] call... I thought the later MOA> (which would make the "do" a little more pointfull). MAKE. But you don't get any difference wrt DO in that case. MOA> If the "with" executes the code, what word holds the value of the face being created? SELF. You're inside the face object. MOA> ... I guess I could patch the vid block and add a word to it MOA> so that it is recognized as a an internal facet... but is the MOA> invested time worth it if it means glass will be delayed a MOA> week or two because of it... I'll have to check if its easy MOA> or not... Very easy to add to the facets, you could do something like: Style Text Text with [ if not block? words [words: make block! 10] insert insert tail words 'attach func [new args] [ new/attach args/2 next args ] ] Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r