syntax: iter?

E

Eric Hodel

The Rubinius specs refer to an iter statement. I have vague memories
of one existing but couldn't find any doc of it in the Pickaxe, and I
don't have my other books around. Am I dreaming?

NameError: undefined local variable or method `iter' for main:Object
from (irb):1

You are dreaming.
 
R

Ryan Davis

The Rubinius specs refer to an iter statement. I have vague memories
of one existing but couldn't find any doc of it in the Pickaxe, and I
don't have my other books around. Am I dreaming?

Prolly not an iter statement... Prolly iter expressions/ASTs:

% echo "[].each {}" | parse_tree_show -
s:)iter, s:)call, s:)zarray), :each), nil)
 
G

Giles Bowkett

The Rubinius specs refer to an iter statement. I have vague memories
of one existing but couldn't find any doc of it in the Pickaxe, and I
don't have my other books around. Am I dreaming?

Prolly not an iter statement... Prolly iter expressions/ASTs:

% echo "[].each {}" | parse_tree_show -
s:)iter, s:)call, s:)zarray), :each), nil)

yeah, I think that's it.

--
Giles Bowkett

Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,269
Messages
2,571,348
Members
48,025
Latest member
attacker

Latest Threads

Top