Menu ▾ ▴

#292 Temporary object of initializer list

open
nobody
None
2015-01-27
2014-12-21
Solbianca
No

I hope that the initializer list for array is extended as temporary object.
For example,

sub foo(array(any) as integer)
...
end sub

foo({10, 20, 30, 40})

and

type foo
  declare constructor()
  declare constructor(array(any) as integer)
  ...
end type

...
dim as foo a => {10, 20, 30, 40}

or

type foo
  declare constructor()
  declare constructor(byval first as integer ptr, byval last as integer ptr)
  ...
end type

...
dim as foo a => @{10, 20, 30, 40}

Discussion


Log in to post a comment.