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

Commit

Permalink
Add @nogc to the object.di files too.
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rp committed Apr 18, 2015
1 parent d6addb9 commit 7925b4e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/object.di
Expand Up @@ -357,21 +357,21 @@ class Throwable : Object
TraceInfo info;
Throwable next;

@safe pure nothrow this(string msg, Throwable next = null);
@safe pure nothrow this(string msg, string file, size_t line, Throwable next = null);
@nogc @safe pure nothrow this(string msg, Throwable next = null);
@nogc @safe pure nothrow this(string msg, string file, size_t line, Throwable next = null);
override string toString();
void toString(scope void delegate(in char[]) sink) const;
}


class Exception : Throwable
{
@safe pure nothrow this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
@nogc @safe pure nothrow this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, file, line, next);
}

@safe pure nothrow this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__)
@nogc @safe pure nothrow this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__)
{
super(msg, file, line, next);
}
Expand All @@ -380,13 +380,13 @@ class Exception : Throwable

class Error : Throwable
{
@safe pure nothrow this(string msg, Throwable next = null)
@nogc @safe pure nothrow this(string msg, Throwable next = null)
{
super(msg, next);
bypassedException = null;
}

@safe pure nothrow this(string msg, string file, size_t line, Throwable next = null)
@nogc @safe pure nothrow this(string msg, string file, size_t line, Throwable next = null)
{
super(msg, file, line, next);
bypassedException = null;
Expand Down

0 comments on commit 7925b4e

Please sign in to comment.