SDLang-D icon indicating copy to clipboard operation
SDLang-D copied to clipboard

Add pure/const/@nogc/nothrow attributes

Open araspik opened this issue 7 years ago • 1 comments

Stuff like sdlang.ast.Tag.parent, which are @property, can generally also have pure, nothrow, @nogc, and const. Please consider adding these attributes globally so that others can use them too!

araspik avatar Sep 08 '18 07:09 araspik

I'm already on this. Currently purity is hard to achieve thanks to dependencies not being updated for years, and often due to similar reasons, I've to resort to @trusted instead of @safe. Currently I'm dealing with some issues from unittest, but that might be something that was always there (how is the lexing of floating point numbers?).

ZILtoid1991 avatar Aug 08 '19 00:08 ZILtoid1991