[fpc-pascal] Feature announcement: Dynamic array extensions
Maciej Izak
hnb.code at gmail.com
Sun May 20 23:31:52 CEST 2018
2018-05-20 22:50 GMT+02:00 Sven Barth via fpc-pascal <
fpc-pascal at lists.freepascal.org>:
> I prohibited it because Delphi does not support it correctly and I don't
> know whether they'd use the usual "(...)"-syntax for the static arrays or
> switch to the dynamic array one. To avoid potential backwards compatibility
> problems I decided to simply disallow it.
>
I do not buy this ;) no one knows what they will use (if ever), but still I
see no real reason for blocking this. Following yours logic any of
management operators should be also prohibited in Delphi mode because some
similar feature for nullable types is planned for Delphi (but no one knows
the final form of their Initialize/Finalize equivalent). Code in r39045 is
IMO too strict.
> I had not tested that one. In consequence that should indeed be disallowed
> as well. Though here the syntax probably wouldn't provide problems in the
> future.
>
and the same sentence is true for the syntax for static array constants
inside dynamic array constants, the more Delphied syntax for arrays
probably wouldn't provide problems in the future too :)
If you like very strict approach and you want to make our life simpler
probably you should implement some "modeswitch" for allowing both examples
(example with records and arrays).
btw. the problem for different syntax between Delphi and ObjFpc is still
valid. I don't see any real gain for different syntax. It was consulted
with community or this is just individual decision? (and here sorry if I
overlooked something).
--
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180520/ec8ebf11/attachment.html>
More information about the fpc-pascal
mailing list