On 2010-03-31, Regan Heath <[email protected]> wrote: > Frank Fischer wrote: >> If I compile the above example with >> >> dmd main.d > > Weird, that command line works fine for me, no errors. >
Strange. I used the linux version 2.042, just downloaded. > It is either implementing a function, or not calling one - sometimes > debug mode will enable extra functions, I note the above undefined > reference is to a symbol called MyMod.assert being called from > MyStruct.opAssign. > > Was that a complete code sample? Yes, exactly those two files. Nothing more, nothing less. The example also works if I put the struct in the file main.d. Frank
