mirror of
https://github.com/irmen/prog8.git
synced 2025-01-13 10:29:52 +00:00
todo
This commit is contained in:
parent
8d9bc2f5ff
commit
ab7dde1450
@ -1835,7 +1835,7 @@ internal class AstChecker(private val program: Program,
|
|||||||
if(targetDatatype in ArrayDatatypes && sourceValue is ArrayLiteral)
|
if(targetDatatype in ArrayDatatypes && sourceValue is ArrayLiteral)
|
||||||
true // assigning array literal to an array variable is allowed, size and type are checked elsewhere
|
true // assigning array literal to an array variable is allowed, size and type are checked elsewhere
|
||||||
else {
|
else {
|
||||||
errors.err("cannot assign new value to variable of type $targetDatatype", position)
|
errors.err("cannot assign this value to variable of type $targetDatatype", position)
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,10 @@ Maybe this routine can be made more intelligent. See usesOtherRegistersWhileEva
|
|||||||
Future Things and Ideas
|
Future Things and Ideas
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
- remove support for array variable initialization with a single value, just require explicitly creating the value array [42] * 10 (which is what the compiler now does for you implicitly)
|
||||||
|
- should the array-to-array assignment support be removed and instead require an explicit copy function call? What prog8_lib_arraycopy() now does.
|
||||||
|
- should we add a cleararray builtin function that can efficiently set every element in the array to the given value
|
||||||
|
|
||||||
- improve detection that a variable is not read before being written so that initializing it to zero can be omitted (only happens now if a vardecl is immediately followed by a for loop for instance)
|
- improve detection that a variable is not read before being written so that initializing it to zero can be omitted (only happens now if a vardecl is immediately followed by a for loop for instance)
|
||||||
- Improve the SublimeText syntax file for prog8, you can also install this for 'bat': https://github.com/sharkdp/bat?tab=readme-ov-file#adding-new-syntaxes--language-definitions
|
- Improve the SublimeText syntax file for prog8, you can also install this for 'bat': https://github.com/sharkdp/bat?tab=readme-ov-file#adding-new-syntaxes--language-definitions
|
||||||
- Can we support signed % (remainder) somehow?
|
- Can we support signed % (remainder) somehow?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user