From 7b96993497392dccf1182f5c2a67ab91c08eed46 Mon Sep 17 00:00:00 2001 From: Kiith-Sa Date: Wed, 16 Oct 2013 23:15:23 +0200 Subject: [PATCH] Nothrow Node hasEqualType, convertsTo, nodeTypeString --- source/dyaml/node.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/dyaml/node.d b/source/dyaml/node.d index bccb357..c5c5c54 100644 --- a/source/dyaml/node.d +++ b/source/dyaml/node.d @@ -1667,11 +1667,11 @@ struct Node //Does given node have the same type as this node? bool hasEqualType(const ref Node node) const @safe { - return value_.type is node.value_.type; + return this.type is node.type; } //Return a string describing node type (sequence, mapping or scalar) - @property string nodeTypeString() const @safe + @property string nodeTypeString() const @safe nothrow { assert(isScalar || isSequence || isMapping, "Unknown node type"); return isScalar ? "scalar" : @@ -1680,7 +1680,7 @@ struct Node } //Determine if the value can be converted to specified type. - @property bool convertsTo(T)() const @safe + @property bool convertsTo(T)() const @safe nothrow { if(isType!T){return true;}