Closed GoogleCodeExporter closed 9 years ago
And while we're on the subject, why does trying to assign a default value to a
const param fail with a compiler error?
Original comment by masonwhe...@gmail.com
on 10 Oct 2012 at 12:11
> procedure DoSomething(data: TMyClasses = []); //fails
Now supported.
Not sure about supporting the nil form, dynamic arrays in DWS distinguish and
empty array from a nil pointer, so that would have to go under some Delphi
compatibility option.
> why does trying to assign a default value to a const param fail with a
compiler error?
I'm not sure what the limitation was exactly, though it was a long time ago, so
the limitation is probably obsolete, opened as Issue #302
Original comment by zar...@gmail.com
on 17 Oct 2012 at 3:15
Original issue reported on code.google.com by
masonwhe...@gmail.com
on 10 Oct 2012 at 12:08