> > |
Yes, you can do that even now. IMO, this is a problem with the type of println. It should not accept functional values. I just sent a message to the nice-info mailing list about this.
Currently, you can write:
let a = () => "hello";
// these print "#<procedure gnu.expr.ModuleMethod>"
println(a);
println( () => "hello" );
// these both print "hello"
println(a());
println( (() => "hello")() );
With the second kind of block call syntax, you could write:
let a = { "hello" };
// these print "#<procedure gnu.expr.ModuleMethod>"
println(a);
println( { "hello" } );
// these both print "hello"
println(a());
println( { "hello" }() );
My proposal is that the type system should not allow the calls that print "#<procedure gnu.expr.ModuleMethod."
-- BrianSmith - 24 Feb 2004 |