[fpc-pascal] Const attributes
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Mon Jul 31 16:28:16 CEST 2017
On Mon, Jul 31, 2017 at 2:08 PM, Marcos Douglas B. Santos
<md at delfire.net> wrote:
> But that is the goal to achieve...
> Not because Java, but to restrict the initialization of the attributes.
I meant that if its trivial to restrict setting final fields to
constructors, but it might be a lot of work to check and make sure
that in each possible execution path inside the constructor the field
can only be set once, I would be happy to have a final implementation
which doesn't do this detail.
--
Felipe Monteiro de Carvalho
More information about the fpc-pascal
mailing list