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: maximo:meteorstudios at: 26-Jun-2003 18:23

> -----Original Message----- > From: Gabriele Santilli [mailto:[g--santilli--tiscalinet--it]] > Sent: Thursday, June 26, 2003 8:24 AM > > Going to reinvent class-based OOP? ;-)
hehe not reinvent ... I did that for the wheel ;-) Its just that rebol is a little static when in comes to objects.. I had a lot of "problems" or should I say ... issues... with objects when creating the glass dialect, and I was tired of having to re-code inits and having to call them after creating the object. glass has its own private init system. liquid was always part of the glass design (actually its part of a complete low-level module framework thats 10 years old)... when glass will be at v3 you'll really see new ui concepts (things like parasites and data based ui descriptions)
> 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?
not really, if you use attach/quiet it does not actually call a notification... but you could call a notification... since the object already is allocated when parsing the dialect right?
> MOA> If the "with" executes the code, what word holds the > value of the face being created? > > SELF. You're inside the face object.
of course !
> 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: >
ok. I've done fancy styles (like a vid blocking menu system) but I'll need just a few clarifications on this one (if you have time):
> Style Text Text with [ > if not block? words [words: make block! 10]
does the value at the end of "make block!" really matter i.e. could it be 1? is it similar to: [words: copy []]
> insert insert tail words 'attach func [new args] [
new is sort of like "self", but on the newly allocated face, right? I guess args points to the word block at the first argument word (ptr to a notifer, for example),
> new/attach args/2 > next args
and this return the list past all arguments you need... :-)
> ] > ]
this is PAINLESS indeed, Steel v1 will already be easier to use :-) thanks a lot, -MAx