Struct with default ctor (Was: [dmd-beta] dmd 2.064 beta take 2)

Minas Mina minas_mina1990 at hotmail.co.uk
Sun May 19 12:31:40 PDT 2013


On Sunday, 19 May 2013 at 18:30:09 UTC, deadalnix wrote:
> void buzz(Foo f) {
>     f.foo(); // Rely in faith. It is invalid and way easier to 
> write than the valid code, which is THE recipe for it to spread.
> }

Shouldn't this throw a NullPointerSomething?


More information about the Digitalmars-d mailing list