jueves, 14 de mayo de 2009

Explore Io's internals

I haven't touched Io in some time, but about a month ago, I came with this piece of Io code, to explore the Io written methods in default Io installation.

For example, to explore Number blocks (all are written in Io, CFunctions aren't), you just have to type this in Io REPL.

Number slotNames foreach(i,
if(Number getSlot(i) type == "Block" ,
(i .. " -> " .. Number getSlot(i) code) println))

No hay comentarios: