Constructors already support array parameters:
type UDT
i as integer
declare constructor( (any) as integer )
end type
constructor UDT( array(any) as integer )
print "UDT.ctor( (any) as integer )"
end constructor
dim array(any) as integer
dim x as UDT = array()
it'd be nice to have Let overloads support them too:
type UDT
i as integer
declare operator let( (any) as integer )
end type
operator UDT.let( array(any) as integer )
print "UDT.let( (any) as integer )"
end operator
dim array(any) as integer
dim x as UDT
x = array()
Diff:
Already the properties also support arrays:
Related: [bugs:#991]
Related
Bugs:
#991Internal changes in fbc 1.20.0 for handling the parsing of non-indexed arrays more like expressions (i.e.
array()) make this feature straight forward to add and will commit changes soon.Adding this feature will resolve [#991]
Previous changes that help allow this feature:
[#984]
commit [8ee7cd4e50906b90f9091518d2c29c50dd91d19e]
Related
Bugs:
#984Bugs:
#991Commit: [8ee7cd]
Feature added in fbc-1.20.0
commit [d381789063deac4407789f4eebdc43056d2c8e96], and
commit [42dce7505f84cc58e569ab14d6439e5297bd5cc8]
Related
Commit: [42dce7]
Commit: [d38178]