dmd 1.053 and 2.037 release

Extrawurst spam at extrawurst.org
Sat Dec 5 05:58:13 PST 2009


Extrawurst wrote:
> Walter Bright wrote:
>> Probably the biggest thing is opDispatch!
>>
>> http://www.digitalmars.com/d/1.0/changelog.html
>> http://ftp.digitalmars.com/dmd.1.053.zip
>>
>>
>> http://www.digitalmars.com/d/2.0/changelog.html
>> http://ftp.digitalmars.com/dmd.2.037.zip
>>
>> Many thanks to the numerous people who contributed to this update.
> 
> Why is opPow just override-able in classes and not in structs ? Is that 
> intended behaviour ?

ok my bad it does work for structs, it just complains if i implement the 
operator using the "override" keyword:
Inside of a class it say:
"Error: function main.Foo.opPow does not override any function"

and inside of a struct is says:
"Error: function main.Foo.opPow override only applies to class member 
functions"

Weird !


More information about the Digitalmars-d-announce mailing list