lua-users home
lua-l archive

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


Lua list <lua@bazar2.conectiva.com.br> wrote:
>the C code and/or Lua code should do something like
>
>assert(VERSION == "Lua5.1", "this version requires 5.1")

Some simple syntactic sugar in the Lua interpreter would be very sweet
here, something like:-

	expects "5.1"

...could print out a standard version warning message and quit. You would
also want a way to make this happen from C, of course. This would avoid
everyone having their own variations of the "sorry, you need at least
version xxx" message and would save memory, be easier to internationalise,
etc, etc...

&.


#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal.
The Blackpool Sixth Form College.
#####################################################################################