Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Mark exception class constructors as @nogc #1223

Merged
merged 2 commits into from
Apr 18, 2015
Merged

Conversation

w0rp
Copy link
Contributor

@w0rp w0rp commented Apr 18, 2015

The exception class constructors do not themselves allocate any memory in the garbage collector, so they can be marked as @nogc. This enables the exception constructors to be used with custom allocators in the future in @nogc code.

I admit that this change was so trivial I just did it directly through GitHub.

The exception class constructors do not themselves allocate any memory in the garbage collector, so they can be marked as @nogc. This enables the exception constructors to be used with custom allocators in the future in @nogc code.
@w0rp
Copy link
Contributor Author

w0rp commented Apr 18, 2015

Ah, it looks like this fails on some tests with undefined references for strange reasons. I have no idea why, I'll leave that to others with more druntime experience to point out why.

@rainers
Copy link
Member

rainers commented Apr 18, 2015

You'll have to add the change to object.di aswell.

@w0rp
Copy link
Contributor Author

w0rp commented Apr 18, 2015

@rainers Thanks! I was just talking to someone in IRC and he noticed the same thing. I've updated that now.

@MartinNowak
Copy link
Member

Auto-merge toggled on

MartinNowak added a commit that referenced this pull request Apr 18, 2015
Mark exception class constructors as @nogc
@MartinNowak MartinNowak merged commit 5d15144 into dlang:master Apr 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants