On 31 Mar 2012, at 12:07, cobines wrote: > The following program compiles and correctly prints 'something'. Is it > something supported or a bug?
It is supported. Even Turbo Pascal already supported passing a single element as an open array parameter. > When I change it to Proc('something') it > doesn't compile (as expected). That's probably a bug, although constant strings are hard/special: a constant string can be an array of char, a shortstring, an ansistring, a widestring and if it's one character also a char or widechar. Jonas_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal