On 4-Jun-09, at 3:25 PM, tobeythorn wrote:
> --- In
iolanguage@..., Jeremy Tregunna
> <jeremy.tregunna@...> wrote:
>>
>> That's part of the parsing subsystem. When the lexer matches certain
>> patterns (like numbers or strings), it will create a token of that
>> particular type. When the parser gets it, it'll create an object of
>> that type with that value. They are still messages, as everything the
>> lexer processes (except comments, though that could be changed) are
>> messages.
>>
>> Regards,
>>
>> Jeremy Tregunna
>> jeremy.tregunna@...
>>
> Jeremy,
> But a message (or tree of messages) must, at the end of the day, be
> sent to real objects (right?). If primitive objects like numbers and
> strings are not the tails of trees of messages, what are? To which
> object would the message "Hello world" or 12345 be sent?
Strings and Numbers *ARE* objects just like any other. They just
happen to be created in C code rather than Io code. You can manipulate
number objects just like any other.
Literals are sent to the Lobby, which is unlike other objects in that
given: foo 5 <-- 5 won't be executed in the context of foo, like: foo
bar <-- would, 5 will be evaluated against the Lobby. Special case,
but that's how things are.
>
> Thanks for your insight,
> -Tobey
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
Regards,
Jeremy Tregunna
jeremy.tregunna@...