Re: [fpc-pascal] Const attributes

2017-07-31 Thread Marcos Douglas B. Santos
On Mon, Jul 31, 2017 at 11:28 AM, Felipe Monteiro de Carvalho wrote: > On Mon, Jul 31, 2017 at 2:08 PM, Marcos Douglas B. Santos > 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 se

Re: [fpc-pascal] Const attributes

2017-07-31 Thread Felipe Monteiro de Carvalho
On Mon, Jul 31, 2017 at 2:08 PM, Marcos Douglas B. Santos 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

Re: [fpc-pascal] Const attributes

2017-07-31 Thread Marcos Douglas B. Santos
On Mon, Jul 31, 2017 at 6:25 AM, Felipe Monteiro de Carvalho wrote: > On Sun, Jul 30, 2017 at 10:47 PM, Sven Barth via fpc-pascal > 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 >> imple

Re: [fpc-pascal] Const attributes

2017-07-31 Thread Felipe Monteiro de Carvalho
On Sun, Jul 30, 2017 at 10:47 PM, Sven Barth via fpc-pascal 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