dlang-community / SDLang-D

An SDLang (Simple Declarative Language) library for D

Home Page:http://sdlang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add pure/const/@nogc/nothrow attributes

araspik opened this issue · 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!

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?).