lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 25 Jan 2011, David Kastrup wrote:
> Tony Finch <dot@dotat.at> writes:
> > On Mon, 24 Jan 2011, Patrick Mc(avery wrote:
> >>
> >> There are languages such as Forth, Factor and Joy to borrow idioms from. Do
> >> you think these idioms might be useful to learn when using the C API?
> >
> > I'm dubious because Lua's stack allows random access whereas forth-alikes
> > do not.
>
> What would you call PICK and ROLL then?

Random access in Lua means that you mostly don't need those operators.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.