Thread overview |
---|
April 25, 2014 Inherit of attributes | ||||
---|---|---|---|---|
| ||||
Hi ! http://dpaste.dzfl.pl/2fa3dd2ea834 Why S.init not pure ? Is it expected behavior or bug ? Thanks! |
April 25, 2014 Re: Inherit of attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | On Friday, 25 April 2014 at 07:59:29 UTC, Temtaime wrote: > Hi ! > > http://dpaste.dzfl.pl/2fa3dd2ea834 > > Why S.init not pure ? Is it expected behavior or bug ? > > Thanks! Fix http://dpaste.dzfl.pl/03f73cd958f4 |
April 25, 2014 Re: Inherit of attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to MrSmith | Hi, MrSmith ! Yes, i know that, but my question isn't about it. I want to type `pure:` at module's beginning and have all function(in classes, too) declared as pure. I think `pure:` should do it. But it doesn't. |
April 25, 2014 Re: Inherit of attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | On Friday, 25 April 2014 at 09:08:50 UTC, Temtaime wrote:
> Hi, MrSmith !
>
> Yes, i know that, but my question isn't about it.
> I want to type `pure:` at module's beginning and have all function(in classes, too) declared as pure.
>
> I think `pure:` should do it. But it doesn't.
pure is not a transitive attribute and when applied to aggregates gets ignored, not applied to all of their members
|
Copyright © 1999-2021 by the D Language Foundation