[fpc-pascal] Const attributes

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Jul 31 11:25:01 CEST 2017


On Sun, Jul 30, 2017 at 10:47 PM, Sven Barth via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
> (though if one would restrict the assignments to the constructors itself
> without any methods called by the constructor then we might be able to
> implement that nevertheless, don't know what Java or other languages
> with final fields allow here)

Java final fields can only be set in constructors (and only once in
each constructor, but I guess it isn't necessary to immitate this
part).

-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list