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,16 +117,9 @@ 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
|
||||
{
|
||||
public:
|
||||
|
||||
/// Key-value pair of YAML nodes, used in mappings.
|
||||
struct Pair
|
||||
private struct Pair
|
||||
{
|
||||
public:
|
||||
/// Key node.
|
||||
|
@ -185,6 +178,15 @@ struct Node
|
|||
}
|
||||
}
|
||||
|
||||
/// 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