Re: Different behaviour between interactive and not interactive usage

Jeremy Tregunna <[email protected]> Sat, 03 Mar 2012 15:34:13 -0600
Newsgroups gmane.comp.lang.io
Message-ID <[email protected]>
On 2012-03-03, at 3:30 PM, norbertmuellerde wrote:

> 
> 
> --- In [email protected], Jeremy Tregunna <jeremy.tregunna@...> wrote:
> > 
> <snip>
> > It's not a bug. Here's why. Operator transformation happens at compile time. In the REPL this is each time you hit enter. However, in a file, it's when the file is initially loaded, before any code is evaluated. As such, you'd have to put your operator table modifications in a separate file, which then loads your other file. Inconvenient, but it's the only way to do this.
> > 
> > Regards,
> > 
> > Jeremy Tregunna
> >
> 
> Hi Jeremy,
> thanks for your quick response,
> I wasn't aware that there is such a thing as compile time in an interpreted language. But thinking about it, it seems to make sense.
> 
The compile time in Io is when tokenization occurs, construction of the AST (messages) and when the operator shuffler runs. It's very lightweight.

Regards,

Jeremy Tregunna