Re: [fpc-pascal] sysutils.beep doesn't beep under Linux?

2009-11-21 Thread fpclist
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 ___

Re: [fpc-pascal] sysutils.beep doesn't beep under Linux?

2009-11-21 Thread Graeme Geldenhuys
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 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

Re: [fpc-pascal] sysutils.beep doesn't beep under Linux?

2009-11-21 Thread Graeme Geldenhuys
Sorry about the typo - a slip of the hand. Make that Ubuntu 8.04.2 On 21/11/2009, Graeme Geldenhuys graemeg.li...@gmail.com wrote: The joys of Linux. I have neither /dev/pcspkr or xbell available on my Ubuntu 9.08.2 system. :-( Graeme. Regards, - Graeme -

Re: [fpc-pascal] sysutils.beep doesn't beep under Linux?

2009-11-21 Thread Andrew Haines
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

Re: [fpc-pascal] sysutils.beep doesn't beep under Linux?

2009-11-21 Thread Michael Van Canneyt
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

[fpc-pascal] Generic type declaration example versus manual.

2009-11-21 Thread Pascal
Hello. In example tgeneric16.pp (from FPC 2.2.4 sources) the generic type TStack is declared as: type { TStack } generic TStackT = class(TObject) public procedure Clear; virtual; destructor Destroy; override; end; Though in FPC manual type is described as: type declaration:

Re: [fpc-pascal] Generic type declaration example versus manual.

2009-11-21 Thread Jonas Maebe
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.

Re: [fpc-pascal] Generic type declaration example versus manual.

2009-11-21 Thread Micha Nelissen
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

[fpc-pascal] Using C functions

2009-11-21 Thread Wimpie Nortje
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

Re: [fpc-pascal] Using C functions

2009-11-21 Thread Jonas Maebe
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.

Re: [fpc-pascal] Using C functions

2009-11-21 Thread Wimpie Nortje
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.

Re: [fpc-pascal] Using C functions

2009-11-21 Thread Ivo Steinmann
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

Re: [fpc-pascal] Generic type declaration example versus manual.

2009-11-21 Thread Anthony Walter
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 TListT = class private ... public function Add: T; procedure Remove(Item: T); property Item[Index: Integer]: T read Get write