Re: [fpc-pascal] Default record fields

2018-06-23 Thread Jim Lee
On 06/22/2018 04:19 AM, Karoly Balogh (Charlie/SGR) wrote: It's not about the compiler team. It's about the integrity of a programming language, which doesn't matter these days a lot, when all languages turned into a feature race to provide the same broken concepts, but with slightly different

Re: [fpc-pascal] Default record fields

2018-06-23 Thread Ryan Joseph
> On Jun 23, 2018, at 3:09 PM, leledumbo via fpc-pascal > wrote: > > Those are two different things actually: Declaration time initialization for > variables vs default record field values. The former doesn't cause confusion > because the value and the variable are in the same place, but the l

Re: [fpc-pascal] Default record fields

2018-06-23 Thread leledumbo via fpc-pascal
> My thinking was that because variables can assign values at declaration it would be reasonable to assume that record fields could have default values which would be assigned at declaration. It sounds like a natural extension of the syntax that already exists. Those are two different things actu

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Ryan Joseph
> On Jun 23, 2018, at 3:15 AM, Sven Barth via fpc-pascal > wrote: > > More often than not people use classes instead of records and even then for > records constructors (or factory methods) cover the important cases. E.g. for > TPoint there is Point() while 3.0.0 also added TPoint.Create() a

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Sven Barth via fpc-pascal
Am 22.06.2018 um 16:18 schrieb Ryan Joseph: On Jun 22, 2018, at 6:19 PM, Karoly Balogh (Charlie/SGR) wrote: Because C# and Shift are managed languages, and C++ just includes everything for no good reason. And this is actually major, with far fetching implications. C++ is an utter mess for th

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Sven Barth via fpc-pascal
Am 22.06.2018 um 17:08 schrieb Anthony Walter: Sven says dynamic packages are coming, but a few independent things need to be completed. Sven, do you care to add anything? It's mainly low level code generation and integration with the RTL, so I doubt that there is much that can be helped there.

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Rainer Stratmann
Am Freitag, 22. Juni 2018, 16:03:28 schrieb Marcos Douglas B. Santos: > On Fri, Jun 22, 2018 at 12:59 PM, Ralf Quint wrote: > > On 6/22/2018 4:19 AM, Karoly Balogh (Charlie/SGR) wrote: > >> Hi, > >> > >> On Fri, 22 Jun 2018, Ryan Joseph wrote: > >>> I want to do a pivot away from the macro stuff

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Marcos Douglas B. Santos
On Fri, Jun 22, 2018 at 12:59 PM, Ralf Quint wrote: > On 6/22/2018 4:19 AM, Karoly Balogh (Charlie/SGR) wrote: >> >> Hi, >> >> On Fri, 22 Jun 2018, Ryan Joseph wrote: >> >>> I want to do a pivot away from the macro stuff to ask another question. >>> Since I’ve wanted to contribute to the compiler

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Ralf Quint
On 6/22/2018 4:19 AM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Fri, 22 Jun 2018, Ryan Joseph wrote: I want to do a pivot away from the macro stuff to ask another question. Since I’ve wanted to contribute to the compiler for so long and I finally have a little understanding I’d like to know if

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Ryan Joseph
> On Jun 22, 2018, at 10:08 PM, Anthony Walter wrote: > > I'm sure there's more that can be done with dynamic packages, but I think you > get the idea. > I’m not a Lazarus user so this is probably not a good fit for me. I’ve never encountered anything like a “package" in FPC so there would

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Anthony Walter
They are the same as Free Pascal packages, that is a collection of units which can be compiled separately, but with the added ability to be loaded and unloaded after a program has started. Presumably there also exists some dynamic package utility functions built into the system unit that also allow

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Ryan Joseph
> On Jun 22, 2018, at 9:43 PM, Anthony Walter wrote: > > Ryan, > > We all desperately want dynamic packages completed. Perhaps you might have > some interest in that? I never heard of "dynamic packages" before so that’s not a good start. :) What is it? Regards, Ryan Joseph ___

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Anthony Walter
Ryan, We all desperately want dynamic packages completed. Perhaps you might have some interest in that? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Ryan Joseph
> On Jun 22, 2018, at 8:32 PM, Joost van der Sluis wrote: > > I read Ryan's mail as an attempt to get involved in some > compiler-development. And he's wondering what a nice task could be. Yes that’s right. I honestly thought default record fields was a requested feature and it’s one I wante

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Ryan Joseph
> On Jun 22, 2018, at 9:12 PM, Karoly Balogh (Charlie/SGR) > wrote: > > Well, true. Sorry if I sounded too rude. But both threads he started > sounded a bit like "this is broken in the language, so lets fix it", where > I beg to differ. I can’t help with higher level stuff because I don’t kno

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Ryan Joseph
> On Jun 22, 2018, at 6:19 PM, Karoly Balogh (Charlie/SGR) > wrote: > > Because C# and Shift are managed languages, and C++ just includes > everything for no good reason. And this is actually major, with far > fetching implications. C++ is an utter mess for this, with the default > initializer

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Karoly Balogh (Charlie/SGR)
Hi, On Fri, 22 Jun 2018, Joost van der Sluis wrote: > >> I want to do a pivot away from the macro stuff to ask another question. > >> Since I’ve wanted to contribute to the compiler for so long and I > >> finally have a little understanding I’d like to know if there’s anything > >> minor I could

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Joost van der Sluis
On 06/22/2018 01:19 PM, Karoly Balogh (Charlie/SGR) wrote: On Fri, 22 Jun 2018, Ryan Joseph wrote: I want to do a pivot away from the macro stuff to ask another question. Since I’ve wanted to contribute to the compiler for so long and I finally have a little understanding I’d like to know if th

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Karoly Balogh (Charlie/SGR)
Hi, On Fri, 22 Jun 2018, Ryan Joseph wrote: > I want to do a pivot away from the macro stuff to ask another question. > Since I’ve wanted to contribute to the compiler for so long and I > finally have a little understanding I’d like to know if there’s anything > minor I could do, that isn’t offen

[fpc-pascal] Default record fields

2018-06-21 Thread Ryan Joseph
I want to do a pivot away from the macro stuff to ask another question. Since I’ve wanted to contribute to the compiler for so long and I finally have a little understanding I’d like to know if there’s anything minor I could do, that isn’t offensive to the compiler team. What comes to mind firs