1
0

組み込み関数を実�

This commit is contained in:
otya128
2015-07-11 19:32:31 +09:00
parent 8a0ae76334
commit f10437449f
5 changed files with 29 additions and 10 deletions

View File

@@ -50,11 +50,12 @@ class BuiltinFunction
}
import std.math;
/*
static pure double ABS(double a, double b)
static pure double ABS(double a)
{
return a < 0 ? -a : a;
}*/
static ABS = function(double x) => abs(x);
static double function(double) ABS = &abs!double;
//static ABS = function double(double x) => abs(this.result == ValueType.Double ? 1 : 0);
static void LOCATE(PetitComputer p, DefaultValue!int x, DefaultValue!int y, DefaultValue!int z)
{
}