This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"RelatedRecords": [ | |
{ | |
"Type": "rs", | |
"Label": "Research Starters", | |
"Records": [ | |
{ | |
"ResultId": 1, | |
"Header": { | |
"DbId": "ers", | |
"DbLabel": "Research Starters", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rdmd -profile -release -O -noboundscheck stackheap.d | |
import std.stdio; | |
import std.datetime; | |
enum array_size = 10_000; | |
enum timing_size = 100_000; | |
// Duplicating the function to separate the results in the profiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module tinker; | |
import std.stdio; | |
class A | |
{ | |
int foo; | |
float bar; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio; | |
class Foo(uint something) | |
{ | |
Foo opBinary(string op)(Foo rhs) const | |
if (op == "*") | |
{ | |
writeln("calling Foo.*"); |