Thread overview
Inherit of attributes
Apr 25, 2014
Temtaime
Apr 25, 2014
MrSmith
Apr 25, 2014
Temtaime
Apr 25, 2014
Dicebot
Apr 25, 2014
Temtaime
April 25, 2014
Hi !

http://dpaste.dzfl.pl/2fa3dd2ea834

Why S.init not pure ? Is it expected behavior or bug ?

Thanks!
April 25, 2014
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
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
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
April 25, 2014
Hi ! Thanks for reply.

Why so ?
And why @nogc not transitive too ?