« Return to Thread: Under the hood.

Re: Under the hood.

by tobeythorn :: Rate this Message:

Reply to Author | View in Thread

--- In iolanguage@..., Friedrich Weber <fred.reichbier@...> wrote:

>
> Hi Tobey,
>
> I try to answer some of your questions here :)
>
> `55` *has* a proto, the `Number` object:
>
> Io> 55 protos
> ==> list(0)
> Io> 55 proto == Number
> ==> true
>
> `0` is just the string representation of the `Number` object (the return
> value of `Number asString`).
> `55` has no slots because Io uses the concept of differential
> inheritance. `Number` itself has a proto, too, the root `Object` object.
>
> Sorry I can't help for the other questions.
>
> Hope that does help you,
>
> Friedrich
>

Friedrich,
That certainly does help. I was reading 0 as meaning the list size was zero... The inheritance hierarchy now makes sense. Thanks man!


 « Return to Thread: Under the hood.