opAssign: cannot set reference of object to null

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Mon Apr 21 11:59:20 PDT 2008


Mahe wrote:
> in the following code the statement "b = null" calls "B opAssign( A v )" and causes an access violation. I don't understand why! How can I set b to null?
> I'm using dmd 1.028.
[snip code]

Looks like a bug. Please report it here: http://d.puremagic.com/issues/
A workaround is probably to do "b = cast(B) null".


More information about the Digitalmars-d-learn mailing list