[REBOL] Re: Strange behaviour in Make object?
From: nitsch-lists:netcologne at: 13-Nov-2001 11:49
RE: [REBOL] Re: Strange behaviour in Make object?
I think RT handles this somewhat lazy.
when accessing objects from c, its easier and faster to
do this by index instead of searching the object for name
with 'port! they have a clean solution.
'port! is like an object, but c can check.
if its a port!, it has the right order.
if no 'port!, its rejected.
so we should have face! and that too,
instead of allowing objects there.
but i expect adding new datatypes! is somewhat expensive
in current implementation, and the only drawback
today is telling "you have to use [make face]. thats by design".
instead of checking it.
so some guis have to figure around instead of getting
a helpfull clean message.
and now i give word to the experts:
[REBOL] Re: view bug (with feel attribute)
> On Tue, Oct 23, 2001 at 01:07:53PM -0400, Media wrote:
> > Hi again,
> > maybe some of you are aware...
> > I just discovered that if you create your feel object for a face and include
> > the functions in the wrong order, your event handling will be PURE CHAOS!!!
> Sure, that is expected. 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.
> This means use make face [...], make feel [...] etc., not make object! [...].
> Holger Kruse