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
package; | |
@:enum | |
abstract StateID(Int) to Int | |
{ | |
var one = 0; | |
var two = 1; | |
var three = 2; | |
// must always have last number |
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 haxe.rtti.Meta; | |
class MetadataBreak { | |
static public function main() { | |
var mdb = new MetadataBreak(); | |
// OK | |
trace(Meta.getFields(MetadataBreak).test.somedata.length); | |
trace(Meta.getFields(MetadataBreak).test.somedata[0]); |
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, std.datetime, std.random, std.range, std.typetuple; | |
Random rng; | |
void main() { | |
rng = Random(123102); | |
alias propSizes = TypeTuple!(5, 10, 500, 100_000, 10_000_000); | |
foreach(i, propSize; propSizes) { | |
foreach(j, fn; TypeTuple!(testNormal, testSorted)) { | |
static if(j == 0) { |