January 12, 2015 General » Re: Is anyone working on a D source code formatting tool? | |||
|---|---|---|---|
| |||
...AST, but edit the byte array. AST nodes contain exact positions: line and column numbers... | |||
January 12, 2015 General » Re: Is anyone working on a D source code formatting tool? | |||
|---|---|---|---|
| |||
...AST, but edit the byte array. AST nodes contain exact positions: line and column numbers... | |||
January 07, 2015 Learn » Shouldn't the pointers be different | |||
|---|---|---|---|
| |||
...http://dpaste.dzfl.pl/c8e56b5954b8 The two nodes have the same address, is this right? | |||
January 05, 2015 General » Re: D and Nim | |||
|---|---|---|---|
| |||
...speed things up by noticing that the nodes[] and visited[] arguments never change, so getLongestPath... | |||
January 05, 2015 General » Re: D and Nim | |||
|---|---|---|---|
| |||
...0,
nodes[nodeID].neighbours
.filter!(x=>!visited[x.dest])
.map!(x => x.cost + getLongestPath(nodes... | |||
January 05, 2015 General » Re: D and Nim | |||
|---|---|---|---|
| |||
...good D way is:
foreach (immutable neighbour; nodes[nodeID].neighbours) {
D programmers should apply const... | |||
January 05, 2015 General » Re: D and Nim | |||
|---|---|---|---|
| |||
...for neighbour in nodes[nodeId].neighbours:
D:
foreach(immutable route neighbour; nodes[nodeID].neighbours){
Correctly... | |||
December 29, 2014 General » Re: DIP69 - Implement scope for escape proof references | |||
|---|---|---|---|
| |||
...Tree
{
Node* root;
}
Restricting public access to nodes to prevent storing persistent node pointers.
Your... | |||
December 21, 2014 General » Re: Invariant for default construction | |||
|---|---|---|---|
| |||
...doesn't the AST allocate it's nodes, with a reference to the symbol? I... | |||
December 21, 2014 General » Re: Invariant for default construction | |||
|---|---|---|---|
| |||
...doesn't the AST allocate it's nodes, with a reference to the symbol? I... | |||
Copyright © 1999-2021 by the D Language Foundation