A quick hack to get D:YAML to work with DMD 2.066 beta 4
This commit is contained in:
parent
e6755e6615
commit
d8f19ffc33
|
@ -117,17 +117,10 @@ package class YAMLContainer(T) if (!Node.allowed!T): YAMLObject
|
||||||
this(T value) @trusted {value_ = value;}
|
this(T value) @trusted {value_ = value;}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// YAML node.
|
|
||||||
///
|
/// Key-value pair of YAML nodes, used in mappings.
|
||||||
/// This is a pseudo-dynamic type that can store any YAML value, including a
|
private struct Pair
|
||||||
/// sequence or mapping of nodes. You can get data from a Node directly or
|
|
||||||
/// iterate over it if it's a collection.
|
|
||||||
struct Node
|
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
/// Key-value pair of YAML nodes, used in mappings.
|
|
||||||
struct Pair
|
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
/// Key node.
|
/// Key node.
|
||||||
Node key;
|
Node key;
|
||||||
|
@ -183,8 +176,17 @@ struct Node
|
||||||
{
|
{
|
||||||
assert(false, "This should never be called");
|
assert(false, "This should never be called");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// YAML node.
|
||||||
|
///
|
||||||
|
/// This is a pseudo-dynamic type that can store any YAML value, including a
|
||||||
|
/// sequence or mapping of nodes. You can get data from a Node directly or
|
||||||
|
/// iterate over it if it's a collection.
|
||||||
|
struct Node
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
alias Pair = .Pair;
|
||||||
|
|
||||||
package:
|
package:
|
||||||
// YAML value type.
|
// YAML value type.
|
||||||
|
|
Loading…
Reference in a new issue