On Sat, 17 Oct 2015 09:28:53 +0200
Sven Barth <[email protected]> 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?

longint.member works.
enum.member does not. Did that work Ondrej?

 
> > 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...)

Does the compiler support 3.member?

Mattias


Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to