[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: newbie: how to modify lua code while the program is running like visual basic
- From: Coda Highland <chighland@...>
- Date: Thu, 21 Jun 2012 15:14:21 -0500
On Thu, Jun 21, 2012 at 2:41 PM, yoyomeltz yoyomeltz
> kevin, thanks you much. it does seem to offer what i wanted but the problem
> is i would be locked into an ide that does not seem to offer much else.
> there has to be a simple way to dynamically reload code as needed via a
> console/command.line or other simple solution.
> if visual basic from microsoft can do it and python can do it, then why
> should i be an issue for Lua.
> even visual basic 6.0 from 10 years ago can do that.
> it seems to me this such a feature is a pre-requisite for learning any
> language, espcially a lightweight scripting language.
> so does anybody have any other suggestions?
I'm going to have to disagree with you there. I learned programming in
1987 and I didn't have any such features.
Such a feature requires pretty tight integration with the VM, or at
least the debugger. It requires being able to preserve the exact state
of the running program and FIND the equivalent place in the new
version of the program to resume. Certainly this isn't an impossible
task, as ZeroBrane does it just fine, but this isn't something you can
just tack on and it's certainly not a feature of the language -- it's
a feature of the development environment.
If your development methodology is tied into having this feature,
you've got a lot of learning to do.