Re: [fpc-pascal] Traits Proposal

2021-02-22 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Mo., 22. Feb. 2021, 10:07: > > > > On Feb 19, 2021, at 8:50 AM, Ryan Joseph wrote: > > > > I just realized another potential problem. If we use the "default" > keyword that means there could be multiple "defaults" unless we limit the > property to 1 per clas

Re: [fpc-pascal] Generic routines for both dynamic array and other collections

2021-02-22 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Mo., 22. Feb. 2021, 13:07: > > > > On Feb 21, 2021, at 2:59 PM, Sven Barth > wrote: > > > > You are supposed to use Length(X). There is no need for a "property". > One doesn't need to objectify each and everything! > > Yes but programmers tend to be neurotic

Re: [fpc-pascal] Generic routines for both dynamic array and other collections

2021-02-22 Thread Graeme Geldenhuys via fpc-pascal
On 22/02/2021 1:10 pm, Sven Barth via fpc-pascal wrote: > If users > want expect arrays to be object oriented they should use corresponding > languages like Java or C#. Fully agree. Even Java doesn't "objectify" arrays as some type of object. Hence Java includes the Arrays class that has a static m

Re: [fpc-pascal] Generic routines for both dynamic array and other collections

2021-02-22 Thread Виктор Матузенко via fpc-pascal
пн, 22 февр. 2021 г. в 16:11, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > > Arrays are simply no structured types, > Actually they are... > thus them having "properties" is wrong as well. If users want expect > arrays to be object oriented they should use corresponding langu