Re: [fpc-pascal] Passing a string to open array of string

2012-03-31 Thread cobines
2012/3/31 Jonas Maebe : > > 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. Thanks.

Re: [fpc-pascal] Passing a string to open array of string

2012-03-31 Thread Jonas Maebe
On 31 Mar 2012, at 20:43, Martin wrote: > On 31/03/2012 19:34, Jonas Maebe wrote: >> It is supported. Even Turbo Pascal already supported passing a single >> element as an open array parameter. > > Interesting, yet the following overloaded functions, compile too. In other > cases, if more than

Re: [fpc-pascal] Passing a string to open array of string

2012-03-31 Thread Martin
On 31/03/2012 19:34, Jonas Maebe wrote: 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. In

Re: [fpc-pascal] Passing a string to open array of string

2012-03-31 Thread Jonas Maebe
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