On Sat, 17 Oct 2015, Sven Barth wrote:
Am 16.10.2015 23:45 schrieb "Mattias Gaertner" <[email protected]>:
bug 28861 <http://bugs.freepascal.org/view.php?id=28861> if a type
helper
exists for a literal value code insight throws an access violation
Example: 'Hello'. // throws an access violation after the dot
The 'Hello'. was not yet implemented. I it is now.
Also for numbers and enums?
It still looks strange to me.
Well... It's a logical extension of the type helpers however (and Delphi
compatible). The only critical part is that literal constants don't have a
type per se and thus the chosen helper might be different :/ (e.g. an Int16
helper when one expected an Int32 one or so...)
Even strings. I'm implementing the Delphi 10 type helpers of sysutils, and you
can run into pretty weird situations and error messages :/
Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus