Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Santiago A.
El 10/07/2017 a las 1:32, Graeme Geldenhuys escribió: > Hi, > > I've give a short reply here, in case others deem this off-topic. I > always seem to end up in hot water about such stuff here. I can send > you more details in private if need be. > > On 2017-07-09 22:16, Michael Van Canneyt wrote:

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread denisgolovan
Just my 50 cents. Even though I avoid using debugger at all cost, I am willing to donate some money should someone start a crowd-funding effort to get "modern" debugging support in Lazarus. That would definitely improve Lazarus/FPC public image. -- Regards, Denis Golovan

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Dmitry Boyarintsev
On Mon, Jul 10, 2017 at 11:19 AM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Though you can't use the same code block for multiple types. > Structured development to the rescue :) === program project1; {$mode delphi} {$RANGECHECKS on} uses SysUtils; function

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Sven Barth via fpc-pascal
Am 10.07.2017 15:46 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2017-07-10 13:34, Dmitry Boyarintsev wrote: >> >> are you referring to "Catching More Than One Type of Exception with One >> Exception Handler" in >>

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Graeme Geldenhuys
On 2017-07-10 07:30, Michael Van Canneyt wrote: If that is all, on the language side, I am a happy man :) I did mention that it was purposely a small list Let me give you a counter example why I think Java plainly sucks. I get very depressed when I see things like this: You do realise

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Felipe Monteiro de Carvalho
On Mon, Jul 10, 2017 at 12:14 PM, Graeme Geldenhuys wrote: > * I seem to have grasped Generics in Java much easier than in FPC or > Delphi. I don't fully know why that is. Maybe the syntax, more examples etc? > Not sure. Well, Java Generics are very limited in

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Michael Van Canneyt
On Mon, 10 Jul 2017, Felipe Monteiro de Carvalho wrote: On Mon, Jul 10, 2017 at 12:52 PM, Michael Van Canneyt wrote: There is no performance improvement, rather the contrary. The generic list works slower than the native list. I meant that C++ templates (and maybe

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Santiago A.
El 10/07/2017 a las 11:17, denisgolovan escribió: > Just my 50 cents. > > Even though I avoid using debugger at all cost, > I am willing to donate some money should someone start a crowd-funding effort > to get "modern" debugging support in Lazarus. > That would definitely improve Lazarus/FPC

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread denisgolovan
That's exactly what I mean - some (or major) part of public considers it a stopper for some reason :) Sorry for hijacking the thread. 10.07.2017, 12:43, "Santiago A." : > El 10/07/2017 a las 11:17, denisgolovan escribió: > It is not a matter of public image, it's a matter

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Michael Van Canneyt
On Mon, 10 Jul 2017, denisgolovan wrote: That's exactly what I mean - some (or major) part of public considers it a stopper for some reason :) Sorry for hijacking the thread. I can add it to the list of sponsored projects on the foundation page. Michael.

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread denisgolovan
Please do. And to that hero who is willing to take the effort - please post a call for donation in a separate thread :) 10.07.2017, 13:06, "Michael Van Canneyt" : > On Mon, 10 Jul 2017, denisgolovan wrote: > >>  That's exactly what I mean - some (or major) part of public

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Michael Van Canneyt
On Mon, 10 Jul 2017, Graeme Geldenhuys wrote: On 2017-07-10 07:30, Michael Van Canneyt wrote: If that is all, on the language side, I am a happy man :) I did mention that it was purposely a small list Let me give you a counter example why I think Java plainly sucks. I get very

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Michael Van Canneyt
On Mon, 10 Jul 2017, Felipe Monteiro de Carvalho wrote: On Mon, Jul 10, 2017 at 12:14 PM, Graeme Geldenhuys wrote: * I seem to have grasped Generics in Java much easier than in FPC or Delphi. I don't fully know why that is. Maybe the syntax, more examples etc?

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Michael Van Canneyt
On Mon, 10 Jul 2017, Felipe Monteiro de Carvalho wrote: On Mon, Jul 10, 2017 at 1:08 PM, Michael Van Canneyt wrote: The code is definitely not the same. In each case, it was measured. There is a 10% performance loss. I'd love a source on this one. I guess you mean

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Felipe Monteiro de Carvalho
On Mon, Jul 10, 2017 at 12:52 PM, Michael Van Canneyt wrote: > There is no performance improvement, rather the contrary. The generic list > works slower than the native list. I meant that C++ templates (and maybe Pascal generics which are very similar if I am not wrong)

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Sven Barth via fpc-pascal
Am 10.07.2017 13:19 schrieb "Michael Van Canneyt" : > > > > On Mon, 10 Jul 2017, Felipe Monteiro de Carvalho wrote: > >> On Mon, Jul 10, 2017 at 1:08 PM, Michael Van Canneyt >> wrote: >>> >>> The code is definitely not the same. In each case, it was

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Michael Van Canneyt
On Mon, 10 Jul 2017, Graeme Geldenhuys wrote: Hi, Purely on the language side of things I love the fact that there is no *.h or an "interface section" in my code - why must C/C++ and Object Pascal duplicate that information. If I want to see a purely "interface" view of my code, the

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Dmitry Boyarintsev
On Mon, Jul 10, 2017 at 9:46 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > On 2017-07-10 13:34, Dmitry Boyarintsev wrote: > >> are you referring to "Catching More Than One Type of Exception with One >> Exception Handler" in >>

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Graeme Geldenhuys
On 2017-07-10 14:46, Graeme Geldenhuys wrote: You can also have a single catch block with a comma separated list of exception types. Oops, typo Not a comma separated list, but a list separated by the | (pipe or vertical bar) symbol. See the last example here:

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Felipe Monteiro de Carvalho
On Mon, Jul 10, 2017 at 3:46 PM, Graeme Geldenhuys wrote: > Then lastly, you can even add a finally block in there too (Java calls this > try-with-resources). No, that's not what try-with-resources is. This is try-with-resources:

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Graeme Geldenhuys
On 2017-07-10 13:34, Dmitry Boyarintsev wrote: are you referring to "Catching More Than One Type of Exception with One Exception Handler" in https://docs.oracle.com/javase/tutorial/essential/exceptions/catch.html Yes. You can have multiple catch blocks inside the same try block. You can also