Btw there is long-time open ... may be related bug
https://bugs.freepascal.org/view.php?id=18702
L.
Dňa 23.10.2017 o 16:42 Michael Van Canneyt napísal(a):
On Mon, 23 Oct 2017, Ryan Joseph wrote:
On Oct 23, 2017, at 9:05 PM, Michael Van Canneyt
wrote:
It is not the default because n
Am 23.10.2017 14:37 schrieb "Maciej Izak" :
2017-10-23 14:33 GMT+02:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:
> Don't know. Only time will tell.
>
Did we have new team member? I would like to meet him! ;)
Sadly time isn't around that often. :P (and why do you assume that
On Mon, 23 Oct 2017, Ryan Joseph wrote:
On Oct 23, 2017, at 9:05 PM, Michael Van Canneyt wrote:
It is not the default because neither Delphi nor TP allow this.
then that begs the question, why not? :) If local functions are a useful
feature then local callbacks should be too.
Well, w
> On Oct 23, 2017, at 9:05 PM, Michael Van Canneyt
> wrote:
>
> It is not the default because neither Delphi nor TP allow this.
then that begs the question, why not? :) If local functions are a useful
feature then local callbacks should be too.
Regards,
Ryan Joseph
On Mon, 23 Oct 2017, Ryan Joseph wrote:
On Oct 23, 2017, at 8:55 PM, Mattias Gaertner wrote:
program test1;
{$mode objfpc}{$H+}
{$ModeSwitch nestedprocvars}
type
TCallback = procedure (a: integer) is nested;
procedure DoCallback;
procedure DoThis(a: integer);
begin
writeln(a);
e
> On Oct 23, 2017, at 8:55 PM, Mattias Gaertner
> wrote:
>
> program test1;
>
> {$mode objfpc}{$H+}
> {$ModeSwitch nestedprocvars}
>
> type
> TCallback = procedure (a: integer) is nested;
>
> procedure DoCallback;
> procedure DoThis(a: integer);
> begin
>writeln(a);
> end;
> var
>
On Mon, 23 Oct 2017 20:04:36 +0700
Ryan Joseph wrote:
> > On Oct 23, 2017, at 4:56 PM, Sven Barth via fpc-pascal
> > wrote:
> >
> > What exactly are you trying? If the nested function accesses its outer
> > scope then it definitely won't work. For that you'd need to wait for
> > anonymous fu
On Mon, 23 Oct 2017, Ryan Joseph wrote:
On Oct 23, 2017, at 4:56 PM, Sven Barth via fpc-pascal
wrote:
What exactly are you trying? If the nested function accesses its outer scope then it definitely won't work. For that you'd need to wait for anonymous function support (which are planned
> On Oct 23, 2017, at 4:56 PM, Sven Barth via fpc-pascal
> wrote:
>
> What exactly are you trying? If the nested function accesses its outer scope
> then it definitely won't work. For that you'd need to wait for anonymous
> function support (which are planned - at least a far as I'm concerne
2017-10-23 14:33 GMT+02:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:
> Don't know. Only time will tell.
>
Did we have new team member? I would like to meet him! ;)
--
Best regards,
Maciej Izak
___
fpc-pascal maillist - fpc-pascal
Am 23.10.2017 12:55 schrieb "Marcos Douglas B. Santos" :
On Mon, Oct 23, 2017 at 6:50 AM, Sven Barth via fpc-pascal
wrote:
> Am 23.10.2017 08:29 schrieb "Marco van de Voort" :
>
> In our previous episode, Sven Barth via fpc-pascal said:
>>
>> Type aliases are currently not supported in mode Delph
On Mon, Oct 23, 2017 at 6:50 AM, Sven Barth via fpc-pascal
wrote:
> Am 23.10.2017 08:29 schrieb "Marco van de Voort" :
>
> In our previous episode, Sven Barth via fpc-pascal said:
>>
>> Type aliases are currently not supported in mode Delphi. In mode ObjFPC
>> they might work, but I'm not sure abo
On Sun, Oct 22, 2017 at 11:53 PM, Ryan Joseph
wrote:
>
>
>> On Oct 23, 2017, at 9:14 AM, Marcos Douglas B. Santos
>> wrote:
>>
>> How do the same with generic classes, using mode delphi?
>
> I think you need to specialize then alias the specialize type. Why do you
> want to make an alias for an
On Mon, Oct 23, 2017 at 3:28 AM, Marco van de Voort wrote:
> In our previous episode, Sven Barth via fpc-pascal said:
>>
>> Type aliases are currently not supported in mode Delphi. In mode ObjFPC
>> they might work, but I'm not sure about that either...
>>
>> That said I also don't see the use of
Am 23.10.2017 11:49 schrieb "Ryan Joseph" :
Is there anyway to get callbacks to work as nested functions? I get crashes
when I try this and I assume it’s because the the compiler is replacing the
first parameter with another value.
What exactly are you trying? If the nested function accesses its
Am 23.10.2017 08:29 schrieb "Marco van de Voort" :
In our previous episode, Sven Barth via fpc-pascal said:
>
> Type aliases are currently not supported in mode Delphi. In mode ObjFPC
> they might work, but I'm not sure about that either...
>
> That said I also don't see the use of type aliases fo
Is there anyway to get callbacks to work as nested functions? I get crashes
when I try this and I assume it’s because the the compiler is replacing the
first parameter with another value.
Regards,
Ryan Joseph
___
fpc-pascal maillist - fpc-pa
Hi all
Does anybody know any module/binding for PAPI?
I mean some library for reading hardware performance counters under Linux.
Something similar to https://github.com/david-grs/geiger
It's quite simple to write it myself, but worth asking before re-inventing the
wheel :)
--
Regards,
Denis Gol
18 matches
Mail list logo