lua-users home
lua-l archive

Re: co-routines [was Re: Unicode]

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


Edgar Toernig wrote:
> Reuben Thomas wrote:
> > This allows code to be manipulated by programs.
>
> If I understand you right, you want to play with code like you can in
> Lisp or Scheme? Is that even reasonable for a language with syntax and
> lexical semantics? And by the way, I don't like self modifying code ;-)
Self-modifying code seems scary to me (I think the last time I did it was on my Vic-20).
However being able to generate code from within a program is quite useful. I'm using this now
to generate Lua code from a simple macro syntax suitable for script writers.
What Reuben wants to do is interesting, but possibly it can be implemented transparently with
existing (or slightly improved... subtle hint) extension facilities.
-John

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