|
 |
Invisible wrote:
> At a simple level, you could just scan the source when you compile it,
> and replace any calls to the #ifTrue:ifFlase: method (and friends) with
> the appropriate machine instructions.
Internally, that's what it does. Of course, if you send that to something
that isn't a boolean, *then* you get an even bigger overhead.
> Then again, Smalltalk is an interpretted language. Speed is quite
> clearly *not* its main objective.
This is not something that noticably slows things down, tho. When
*everything* is a message dispatch, you can design your microcode to do that
efficiently.
--
Darren New, San Diego CA, USA (PST)
Yes, we're traveling togeher,
but to different destinations.
Post a reply to this message
|
 |