[fpc-pascal] type helper default property

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jan 17 23:31:58 CET 2019

On Thu, 17 Jan 2019 22:42:39 +0100
Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:

> > Is this an oversight, or has FPC some use for the default
> > directive?  
> For now I'd say that it's an oversight. Delphi allows it for class
> and record helpers, but not for helpers for primitive types. In
> theory we could allow it for non-array and non-string types (aka
> those that don't have an internal [...] "operator"). On the other
> hand we can simply forbid "default" for primitive type helpers like
> Delphi does...



More information about the fpc-pascal mailing list