Re: Different behaviour between interactive and not interactive usage
"norbertmuellerde" <[email protected]> Sat, 03 Mar 2012 21:30:57 -0000
| Newsgroups | gmane.comp.lang.io |
|---|---|
| Message-ID | <[email protected]> |
--- 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. Regards Norbert