REPL semantics

Luís Marques luis at luismarques.eu
Thu Jul 12 19:07:15 UTC 2018


Consider a D REPL session like this:

> void bar(long x) { writeln(x); }

> void foo() { bar(42); }
42

> void bar(int) {}

Assuming implementation complexity is not an issue, what do you 
feel is the more natural semantics for a REPL? Should foo now 
call bar(int), or should it still call bar(long)? (feel free to 
generalize the issue)

I was curious to see what the existing REPLs did, but they seem 
to have bit rotted and no longer compile.


More information about the Digitalmars-d mailing list