[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: class syntax (was: Re: Making Lua lexically scoped (was: Re: Proper tail recursion))
- From: "Jay Carlson" <nop@...>
- Date: Mon, 30 Jul 2001 22:39:04 -0400
Left out a line.
> function end_class(name)
> if not _class_declaration then
> error("end_class without a begin_class")
> end
> if _class_declaration.name ~= name then
> error("end_class of "..name.." but the class
> ".._class_declaration.name.." is open")
> end
> declare_class(name, _class_declaration.table)
_class_declaration = nil
> -- clean anything out of the global namespace that you put there
> return nil -- to empty out the "class" global
> end
(Wait, why am I debugging pseudocode when I've got another fltk release to
push out the door...)
Jay