Änderungen

Summary

  1. implemented length field for sized arrays (commit: da8049b) (details)
Commit da8049b36cc0e93cefaea1f3bc5ae81fbe1ff786 by peter.peq
implemented length field for sized arrays
closes #8
The arrays are not really sized, it is just that the type contains the
size. It also does not add any bounds checks, so the following code
might surprisingly print 42 and run without throwing an exception:
var ar = [42] ar[1] = 58    // out of bounds access does not change
length var sum = 0 for i = 0 to ar.length - 1
sum += ar[i] print(I2S(sum))
(commit: da8049b)
The file was addedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/attributes/names/OtherLink.java
The file was modifiedde.peeeq.wurstscript/src/test/java/tests/wurstscript/tests/ClassesTests.java (diff)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/validation/WurstValidator.java (diff)
The file was modifiedde.peeeq.wurstscript/src/test/java/tests/wurstscript/tests/ArrayTests.java (diff)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/imtranslation/MultiArrayEliminator.java (diff)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/attributes/AttrVarDefType.java (diff)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/types/WurstTypeArray.java (diff)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/imtranslation/ExprTranslation.java (diff)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/attributes/names/NameResolution.java (diff)