Closed Mercerenies closed 2 years ago
Relevant functions: Color8
, ColorN
, assert
, range
, var2bytes
, bytes2var
.
b213773 implements range
. We will be wrapping all GDScript functions which have optional arguments and using call magic (the same call magic as used in #79, in fact) to forward all direct calls.
Closed by 48487b5
Several built-in GDScript functions take optional arguments. For instance,
In principle, we should treat this as the following in GDLisp
but that will be treated in GDScript as though it was declared
77 gets us closer, treating it as
But this has the problem that, if we
#'
it to get a function reference, then the reference will behave in a subtly incorrect way. Namely,will fill in
null
for the second argument, rather than using the appropriate default of1.0
.