lua-users home
lua-l archive

lua4.1w4 - for loop with functions - suggestions

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


since:
for a,b in MyFunction do
	...
end
is possible, i would especially like
for a,b in MyObject:Get do
	...
end
to be possible.
any chances?
Domink
P.S.: yes i know, that the following is possible
for a,b in function () return MyObject:Get() end do
	....
end
but i don't like, i think its too clumsy

AltStyle によって変換されたページ (->オリジナル) /