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 Handling
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
>> https://docs.oracle.com/javase/tutorial/essential/exceptions
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
>> https://docs.oracle.com/javase/tutorial/essential/exc
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:
https://docs.oracle.com/javase/tutorial/essential/exceptions/tryRe
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:
https://docs.oracle.com/j
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 h
On Mon, 10 Jul 2017, Sven Barth via fpc-pascal wrote:
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 measu
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 measured.
There is
>>> a 10% performance loss.
>
On Mon, Jul 10, 2017 at 6:14 AM, Graeme Geldenhuys <
mailingli...@geldenhuys.co.uk> wrote:
>
> * Try/Catch blocks where you can catch multiple exception types - without
> needing nested code blocks like Object Pascal. You can even add a finally
> block in there too - again without nested blocks.
>
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 in Free Pascal?
Obvious
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 in Free Pascal?
Because I searching the web C++ developers seam all sure that
templa
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 Pascal generics which are
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) are faster than Java gener
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?
Not sure.
Well, Java Generics
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 depresse
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 comparison with C++ / Object
Pascal
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 th
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 considers it a
>> stopp
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.
__
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 of usability, a "must
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 pub
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
__
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:
>>
23 matches
Mail list logo