DMD 0.177 release
JohnC
johnch_atms at hotmail.com
Sat Dec 9 06:10:08 PST 2006
"JohnC" <johnch_atms at hotmail.com> wrote in message
news:elef3s$30jn$1 at digitaldaemon.com...
> "Walter Bright" <newshound at digitalmars.com> wrote in message
> news:ele2k9$2hr5$1 at digitaldaemon.com...
>> More ABI changes, and implicit [] => * no longer allowed.
>>
>> http://www.digitalmars.com/d/changelog.html
>>
>> http://ftp.digitalmars.com/dmd.175.zip
>
> opAssign is new as well, but it throws an AV - unless I'm not using it
> right?
>
> class Test {
>
> int value;
>
> void opAssign(int value) {
> this.value = value;
> }
>
> }
>
> void main() {
> Test t = 10;
> }
Take that back. Actually, it does work:
Test t = new Test;
t = 10;
Sadly it doesn't like a struct as the lvalue. There are no examples in the
docs, so how it's supposed to be used is anyone's guess...
More information about the Digitalmars-d-announce
mailing list