I add the following platform depends attributes in Integer.ceylon
shared native Integer maxIntegerValue;
shared native Integer minIntegerValue;I did the java implementation of it and it seems to work fine. But I don't know how to implement those native attributes in javascript.
I did the following in numbers.js (I took
infinity as example)
//-(2^53)+1
var $minIntegerValue = Integer(-9007199254740991);
function getMinIntegerValue() { return $minIntegerValue; }
//(2^53)-3
var $maxIntegerValue = Integer(9007199254740989);
function getMaxIntegerValue() { return $maxIntegerValue; }With:
exports.getMinIntegerValue=getMinIntegerValue;
exports.getMaxIntegerValue=getMaxIntegerValue;or:
exports.minIntegerValue=$minIntegerValue;
exports.maxIntegerValue=$maxIntegerValue;But when I launch
ant ceylon.language.js it ends with the following error:
ceylon.language.js:
[java] Generating language module metamodel in JSON...
[java] 2 errors, 0 warningserror encountered [toplevel value must be specified: maxIntegerValue] at 14:0-14:37 of ceylon/language/Integer.ceylon
[java]
[java] Compiling language module sources
[java] error encountered [toplevel value must be specified: minIntegerValue] at 15:0-15:37 of ceylon/language/Integer.ceylon
[java] Compiling language module from Ceylon source
[java] error encountered [toplevel value must be specified: maxIntegerValue] at 14:0-14:37 of ceylon/language/Integer.ceylon
[java] error encountered [toplevel value must be specified: minIntegerValue] at 15:0-15:37 of ceylon/language/Integer.ceylon2 errors, 0 warnings
[java]
[java] Java Result: 1I take a look at build.xml to see if the where some specific include declarations to be done (like I did for the java implementation of those package attributes) but I didn't found anything.
Right now, I have no ideas about what I forgot to do.
Any Ideas?
Thanks,