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

Aradeonas aradeonas at operamail.com
Sat Feb 6 22:08:30 CET 2016


I like this one more :
> It now is "because we haven't implemented it yet"
Because :
> A literal such as [10,20,30,40] is a set in pascal, not an array.
Is not a good one I think. For example this one works :
> function Test(Arr:array of integer); Usage: Test([1,2,3]);
Why it cant work for assigning a var but it can be used for parameters?

Regards, Ara


-- 
http://www.fastmail.com - Same, same, but different...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160206/06527eb3/attachment-0003.html>


More information about the Lazarus mailing list