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

[REBOL] Re: view bug (with feel attribute)

From: media:quazart at: 23-Oct-2001 14:52

----- Original Message ----- From: <[holger--rebol--com]> Sent: Tuesday, October 23, 2001 1:28 PM Subject: [REBOL] Re: view bug (with feel attribute)
> On Tue, Oct 23, 2001 at 01:07:53PM -0400, Media wrote: > > I just discovered that if you create your feel object for a face and
> > the functions in the wrong order, your event handling will be PURE
> Sure, that is expected.
I guess its my turn to feel a little dumb (no pun intented ;-) I can see it comming...
> Any time you create an instance of an object > with a predefined structure you MUST use the template object. You cannot > roll your own object from scratch and expect the result to be compatible > with the template. >
Ah, then you mean I've been lucky, in general, for the last 2 years ':-D damn! well, thanks for the pointer... it ain't that obvious because when you probe objects... it leads one to think that the structure is not as relevent as in other languages. I really thought that the object structure was more dynamic...
> This means use make face [...], make feel [...] etc., not make object!
[...]. What led me to use "make object! [...]" was that the following code returns an error (in rebol/view)! -------------------------- rebol [] myfeel: make feel [] ** Script Error: feel has no value ** Where: do-boot ** Near: myfeel: make feel [] ----------------------------------- Although I have now cloning the feel object from other Faces... I think it would be nice that the docs mention how to do it explicitely... since the docs do take the time to talk about the feel object ... just a short example like: myface: make face [] myface/feel: make myface/feel [] (creates a clone of the default feel created by make face) Can you then confirm or infirm the following sentence?: objects are static contexts, contrary to the global context which is dynamic Thanks! -Maxim PS: I still think the doc should be modified as I explained... it might help someone else to keep from doing the same mistake.