class Node
{
// abstract members
}
class StrNode : Node
{
string value;
}
// more Node-types...
other than
const nodeCount = 10_000_000;
foreach (0 .. n)
{
auto node = new Node(someData);
// connect node...
}
Per Nordlöw via Digitalmars-d-learn Fri, 30 Mar 2018 13:36:04 -0700
class Node
{
// abstract members
}
class StrNode : Node
{
string value;
}
// more Node-types...
other than
const nodeCount = 10_000_000;
foreach (0 .. n)
{
auto node = new Node(someData);
// connect node...
}