loop dovalue = detector.readValue < 5LCD.drawString "#{value} ", 0end
I've got this piece of code which won't compile:value = 123LCD.drawInt(123, 0, 6)LCD.drawInt(value, 0, 7)Fails:> mirahc --classpath /Users/peter/Downloads/leJOS_NXJ_0.9.1beta-3/lib/nxt/classes.jar main.mirahParsing...main.mirahInferring types...Inference Error:main.mirah:78: Incompatible types #<IntegerType int> and #<BooleanType boolean>.LCD.drawInt(value, 0, 6)^^^^^Here is the verbose output: https://gist.github.com/pehrlich/14d4bca4fd9efa00fb3fHere is the docs on drawInt: http://lejos.sourceforge.net/p_technologies/nxt/nxj/api/lejos/nxt/LCD.html#drawInt(int, int, int)Questions:- ) What's this error mean? How can I fix it?- ) Is there any way I can an internal backtrace in this error? For debugging, I was able to find the line in the Mirah gem which threw this error, but not what called that method. --trace and --backtrace aren't recognizedThanks!!!--Peter--
You received this message because you are subscribed to the Google Groups "The Mirah Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirah+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.