I haven't used generics in FPC, but really have to ask, is they
keyword generic really necessary? Shouldn't generics be declared like
this:
type
TList = class
private
...
public
function Add: T;
procedure Remove(Item: T);
property Item[Index: Integer]: T read Get write Put;
Wimpie Nortje schrieb:
Jonas Maebe wrote:
On 21 Nov 2009, at 20:16, Wimpie Nortje wrote:
Is there any way to use a C library that use the __fastcall calling convention?
Not at this time. Also note that that the fastcall convention is not
standardised and varies between different C
Jonas Maebe wrote:
On 21 Nov 2009, at 20:16, Wimpie Nortje wrote:
Is there any way to use a C library that use the __fastcall calling convention?
Not at this time. Also note that that the fastcall convention is not
standardised and varies between different C compilers.
Thanks,
On 21 Nov 2009, at 20:16, Wimpie Nortje wrote:
> Is there any way to use a C library that use the __fastcall calling
> convention?
Not at this time. Also note that that the fastcall convention is not
standardised and varies between different C compilers.
Jonas
Hi all,
Is there any way to use a C library that use the __fastcall calling
convention?
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe wrote:
tgeneric16.pp is not an example, it's a test. Moreover, it doesn't compile yet,
not even with FPC 2.5.1. So documenting that syntax is not really a good idea.
His comment doesn't really apply to tgeneric16 specifically, but more to
generic syntax in general.
Micha
__
On 21 Nov 2009, at 19:00, Pascal wrote:
> In example tgeneric16.pp (from FPC 2.2.4 sources) the generic type TStack is
> declared as:
tgeneric16.pp is not an example, it's a test. Moreover, it doesn't compile yet,
not even with FPC 2.5.1. So documenting that syntax is not really a good idea.
Hello.
In example tgeneric16.pp (from FPC 2.2.4 sources) the generic type
TStack is declared as:
type
{ TStack }
generic TStack = class(TObject)
public
procedure Clear; virtual;
destructor Destroy; override;
end;
Though in FPC manual type is described as:
type declaration: id
On Sat, 21 Nov 2009, Andrew Haines wrote:
Michael Van Canneyt wrote:
By that rationale: no beep() on linux.
Can beep be made a procvar?
I have been thinking along similar lines, and made an implementation for beep
that works with a handler. It's not yet committed, as I was trying to mak
Michael Van Canneyt wrote:
>
> By that rationale: no beep() on linux.
>
Can beep be made a procvar?
Regards,
Andrew
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Sorry about the typo - a slip of the hand. Make that Ubuntu 8.04.2
On 21/11/2009, Graeme Geldenhuys wrote:
> The joys of Linux. I have neither /dev/pcspkr or xbell available on my
> Ubuntu 9.08.2 system. :-(
>
> Graeme.
Regards,
- Graeme -
___
The joys of Linux. I have neither /dev/pcspkr or xbell available on my
Ubuntu 9.08.2 system. :-(
Graeme.
On 21/11/2009, fpcl...@silvermono.co.za wrote:
> On Saturday 21 November 2009 08:56:53 Martin Schreiber wrote:
>> On Friday 20 November 2009 21:24:17 Jorge Aldo G. de F. Junior wrote:
>> >
On Saturday 21 November 2009 08:56:53 Martin Schreiber wrote:
> On Friday 20 November 2009 21:24:17 Jorge Aldo G. de F. Junior wrote:
> > arent there a /dev/something device for pcspeaker ?
/dev/pcspkr
>
> With X11 one can use xbell().
>
> Martin
>
> ___
13 matches
Mail list logo