[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: DSL in lua
- From: Coda Highland <chighland@...>
- Date: Thu, 6 Dec 2012 22:54:23 -0800
On Thu, Dec 6, 2012 at 10:44 PM, Vasiliy Tolstov <v.tolstov@selfip.ru> wrote:
> 2012/12/7 Sam Roberts <vieuxtech@gmail.com>:
>> Here you go:
>
>> https://gist.github.com/1989745
>
> give error on ubuntu precise (lua -v
>
> Lua 5.2.0 Copyright (C) 1994-2011 Lua.org, PUC-Rio
> )
>
> lua: ./dsl-print:55: attempt to call global 'setfenv' (a nil value)
> stack traceback:
> ./dsl-print:55: in function 'dsl'
> ./dsl-print:106: in main chunk
> [C]: in ?
>
>
> --
> Vasiliy Tolstov,
> Clodo.ru
> e-mail: v.tolstov@selfip.ru
> jabber: vase@selfip.ru
>
setfenv() is a Lua 5.1 mechanism; Lua 5.2 drops it for a different
mechanism (the _ENV table).
/s/ Adam