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;}
|
||||
}
|
||||
|
||||
/// 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
|
||||
|
||||
/// Key-value pair of YAML nodes, used in mappings.
|
||||
private struct Pair
|
||||
{
|
||||
public:
|
||||
/// Key-value pair of YAML nodes, used in mappings.
|
||||
struct Pair
|
||||
{
|
||||
public:
|
||||
/// Key node.
|
||||
Node key;
|
||||
|
@ -183,8 +176,17 @@ struct Node
|
|||
{
|
||||
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:
|
||||
// YAML value type.
|
||||
|
|
Loading…
Reference in a new issue