lua-users home
lua-l archive

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



One more thing..

One can harmonize the syntax by:
	
	#define __GOTO(xx)	__GOTO=xx

:)

14.9.2004 kello 00:59, David Given kirjoitti:

 Asko Kauppi wrote:
[...]
#define __GOSUB(xx) __retline='#'.. #__LINE__; __GOTO=xx; __LABEL='#'.. #__LINE__
    #define __RETURN     __GOTO=__retline

a = 10
__GOSUB(1)
end

__LABEL = 1
print(a)
if (a > 0) then
  a = a - 1
  __GOSUB(1)
end
__RETURN

--
[insert interesting .sig here]