組み込み関数を実�

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

No files matched your search

+3 -2
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)
{
}