[Lazarus] Can I assign items in an array all at once in FreePascal?

Michael Van Canneyt michael at freepascal.org
Sat Feb 6 18:07:49 CET 2016



On Sat, 6 Feb 2016, Aradeonas wrote:

> Michael can I ask why we cant do something like this :
>>  MyArr :=[10, 20, 30, 40];   

Because of 2 reasons:

1. Delphi introduced the create constructor.

2. A literal such as [10,20,30,40] is a set in pascal, not an array.


Michael.


More information about the Lazarus mailing list