Compatibility Notes
Some updates include certain changes which require existing projects to be modified to retain compatibility with updated versions. This section documents those changes as well as the remedies to any incompatibilities they create.
#
1.1.2- Improved
foreach
syntax and behavior- Parentheses now close before
call
keyword rather than after - Existing instances of this function must be updated to match the new syntax
- (Recommended: Use regex global search & replace in external code editor)
- Parentheses now close before
#
1.1.0- Changed
timer_get
andtimer_set
totimer_get_time
andtimer_set_time
for clarity and consistency with other get and set functions.- Existing instances of these functions must be renamed to match the updated syntax
- (Recommended: Use global search & replace)
- Replaced
array_create_2d
witharray_create_ext
, now supporting arbitrary dimensions- Existing instances of the old function must be renamed to match the new function.
- Instances providing two dimensions and a default value require no further changes.
- Setting a default value is now required, as additional arguments are treated as new dimensions preferentially. Instances which previously set no default value must be updated to include one.
- (Recommended: Use global search & replace)
- Replaced
array_fill_2d
witharray_fill
, now supporting arbitrary dimensions- Existing instances of the old function must be renamed to match the new function.
- (Recommended: Use global search & replace)
- Replaced
array_width
andarray_height
witharray_depth
to complement the new built-inarray_length
functionarray_width
generally maps toarray_length
andarray_height
generally maps toarray_depth
. However, behaviors may not be identical in all cases due to multidimensional arrays now acting as arrays within arrays. Evaluate existing code and update as needed.- (Recommended: Use global search & replace)
- Replaced
array_find_col
andarray_find_row
witharray_find_index
andarray_find_dim
array_find_col
generally maps toarray_find_index
andarray_find_row
generally maps toarray_find_dim
. However, behaviors may not be identical in all cases due to multidimensional arrays now acting as arrays within arrays. Evaluate existing code and update as needed.- (Recommended: Use global search & replace)