Re: [fpc-pascal] with in classes/records

2018-10-04 Thread Ryan Joseph
> On Oct 4, 2018, at 9:19 PM, Michael Van Canneyt > wrote: > > And was this not the whole idea of introducing a default property in the > first place ? It is but I just wanted to make sure that this particular ambiguity with initializing classes wasn’t concerning for anyone. So far I’ve

Re: [fpc-pascal] with in classes/records

2018-10-04 Thread Michael Van Canneyt
On Thu, 4 Oct 2018, Ryan Joseph wrote: On Oct 4, 2018, at 8:34 PM, Michael Van Canneyt wrote: Technical issues aside, it kind of defeats the purpose of the default property... Then just tolerate the fact we have a dual meaning for assignments? Looks wrong but maybe not a problem. var

Re: [fpc-pascal] with in classes/records

2018-10-04 Thread Ryan Joseph
> On Oct 4, 2018, at 8:34 PM, Michael Van Canneyt > wrote: > > Technical issues aside, it kind of defeats the purpose of the default > property... Then just tolerate the fact we have a dual meaning for assignments? Looks wrong but maybe not a problem. var wrapper: TWrapper; begin

Re: [fpc-pascal] Order of Precedence: FPC/Delphi vs Java

2018-10-04 Thread DaWorm
On Thu, Oct 4, 2018 at 4:02 AM wrote: > This is one of the most useless collection of floating point myths I > have seen since a long time. > > With rolling a dice you mean, that the comparisons are only > randomly correct or what)? Since the floating-point numbers > are well-defined and exact

Re: [fpc-pascal] with in classes/records

2018-10-04 Thread Michael Van Canneyt
On Thu, 4 Oct 2018, Ryan Joseph wrote: On Sep 26, 2018, at 1:14 AM, Benito van der Zander wrote: Hi, perhaps everything would be clearer, if the default property was accessed with ^ ? var wrapper: TWrapper; begin wrapper := TWrapper.Create; wrapper^ :=

Re: [fpc-pascal] with in classes/records

2018-10-04 Thread Ryan Joseph
> On Sep 26, 2018, at 1:14 AM, Benito van der Zander wrote: > > Hi, > > perhaps everything would be clearer, if the default property was accessed > with ^ ? > > > var > wrapper: TWrapper; > begin > wrapper := TWrapper.Create; > wrapper^ := THelperA.Create; > end. >

Re: [fpc-pascal] Order of Precedence: FPC/Delphi vs Java

2018-10-04 Thread gtt
This is one of the most useless collection of floating point myths I have seen since a long time. I don't know why you want to compare two floats, but you'd better use currency type. Float is for calculus, but comparing float1=float2 (or float1>float2) is rolling the dice. Obviously, the