ffleurey/ThingML — Issue #14: Arrays not properly compiled in Scala when they are not explicitly set
Author: brice-morin
Created: 2011-10-31 20:20:49+00:00
State: open
Labels: Compilers

property buffer : Byte[16]

The thing declaring this property will be properly compiled, but its instantiation will not compile. When initializing the thing in the configuration (compiled in a scala main), the array is not declared/initialized and it is thus not passed as argument of the constructor, resulting in a compilation error.

workaround until the bug is fixed
property buffer : Byte[16]
set buffer[0] = 0//explicitly instantiate the array