D1: accepts-invalid?

2010-08-23 Thread klickverbot
Hello all, currently, DMD accepts the following code, but the resulting binary bus-errors at runtime: --- import std.stdio; void foo( string str ) () { writefln( str ); } void bar( string text ) { foo!( text ); } void main() { bar( "asdf" ); } --- Shouldn't this be a compile

Re: D1: accepts-invalid?

2010-08-23 Thread Don
klickverbot wrote: Hello all, currently, DMD accepts the following code, but the resulting binary bus-errors at runtime: --- import std.stdio; void foo( string str ) () { writefln( str ); } void bar( string text ) { foo!( text ); } void main() { bar( "asdf" ); } --- Should