[fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Graeme Geldenhuys
Hi, [rant] I'm just sick of the idiocy of Linux/Unix with there case sensitive file systems! Google'ing a round for the reason for this, it seems that in the 60's, it was C programmers that decided that searching for case sensitive files was easier to implement (and marginally faster). Well, 40+

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread michael . vancanneyt
On Fri, 24 Feb 2012, Graeme Geldenhuys wrote: Hi, [rant] I'm just sick of the idiocy of Linux/Unix with there case sensitive file systems! Well, some men prefer blondes, others prefer brunettes. [/rant] Anyway, back to the point I seriously doubt there would be any problems, but

Re: [fpc-pascal] (no subject)

2012-02-24 Thread Sven Barth
Am 23.02.2012 17:17, schrieb Everton Vieira: Is there any plans to implement public procedures/function of a class that can be used without been necessary to create the class? Do you know class procedures/functions? === example begin === type TTestClass = class class procedure Foo;

[fpc-pascal] Re: (no subject)

2012-02-24 Thread Lukasz Sokol
On 23/02/2012 16:17, Everton Vieira wrote: Is there any plans to implement public procedures/function of a class that can be used without been necessary to create the class? -- Everton Vieira. does class procedure foo(bar: TSomething); not work ? L.

Re: [fpc-pascal] (no subject)

2012-02-24 Thread Howard Page-Clark
On 23/2/12 4:17, Everton Vieira wrote: Is there any plans to implement public procedures/function of a class that can be used without been necessary to create the class? I presume you know about class methods such as TObject's class function ClassName : shortstring; that you can use like

Re: [fpc-pascal] (no subject)

2012-02-24 Thread Mattias Gaertner
Everton Vieira tonvie...@gmail.com hat am 23. Februar 2012 um 17:17 geschrieben: public procedures/function of a class that can be used without been necessary to create the class?=?71c4af2e-7ede-4749-bc03-e827c6f6ed0d-- Maybe you mean class procedures? That exists since many years.

Re: [fpc-pascal] (no subject)

2012-02-24 Thread Felipe Monteiro de Carvalho
I think that you just described class methods: http://www.freepascal.org/docs-html/ref/refsu27.html -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] (no subject)

2012-02-24 Thread Michael Van Canneyt
On Thu, 23 Feb 2012, Everton Vieira wrote: Is there any plans to implement public procedures/function of a class that can be used without been necessary to create the class? This exists: class functions. Given the declaration TMYClass = Class Class function doGLobal (Arg : ArgType)

[fpc-pascal] Class const of array of record.

2012-02-24 Thread Everton Vieira
I was trying to make this construction: type TRec = record Numero: Integer; Nome: String; end; function mTRec(Numero: Integer; Nome: String): TRec; type TTest = class const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2, 'murilo'), mTRec(3, 'vieira')); end;

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Tomas Hajny
On Fri, February 24, 2012 12:21, michael.vancann...@wisa.be wrote: On Fri, 24 Feb 2012, Graeme Geldenhuys wrote: . . Anyway, back to the point I seriously doubt there would be any problems, but I'll ask anyway. Has anybody here used JFS (case insensitive option enabled) with FPC and

Re: [fpc-pascal] Class const of array of record.

2012-02-24 Thread Jonas Maebe
On 24 Feb 2012, at 14:28, Everton Vieira wrote: type TTest = class const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2, 'murilo'), mTRec(3, 'vieira')); end; See http://www.freepascal.org/docs-html/ref/refse22.html (the syntax is the same for typed constants and

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Graeme Geldenhuys
2012/2/24 Tomas Hajny : One concrete example - if you create a unit and store it in a file with a mixed case name, it will be found by the compiler in your case. If you share this source with someone else (also using Linux like you), it may not be found. This would be an equal problem if done

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Mattias Gaertner
On Fri, 24 Feb 2012 13:09:09 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: Hi, [rant] I'm just sick of the idiocy of Linux/Unix with there case sensitive file systems! Google'ing a round for the reason for this, it seems that in the 60's, it was C programmers that decided that

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Henry Vermaak
On 24/02/12 11:09, Graeme Geldenhuys wrote: Hi, [rant] I'm just sick of the idiocy of Linux/Unix with there case sensitive file systems! Google'ing a round for the reason for this, it seems that in the 60's, it was C programmers that decided that searching for case sensitive files was easier to

[fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread Everton Vieira
Is contructions like this that aren't available: type TRec = record Numero: Integer; Nome: String; end; implementation {$R *.lfm} procedure ShowTRec(rec: TRec); begin ShowMessage(rec.Nome); end; procedure TForm1.Button1Click(Sender: TObject); begin ShowTRec((Numero: 1; Nome:

Re: [fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread kyan
Is there any how to do it? You can use advanced record syntax and do something like this: type TRec = record Numero: Integer; Nome: String; class function Create(ANumero: Integer; const ANome: string): TRec; static; inline; end; ... class function TRec.Create(ANumero: Integer;

Re: [fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread Everton Vieira
Doesn't work this code doesn't compile: type { TRec } TRec = record Nome: String; class function Create(aNome: String): TRec; static; inline; end; procedure ShowTRec(rec: TRec); implementation {$R *.lfm} procedure ShowTRec(rec: TRec); begin ShowMessage(rec.Nome); end; { TRec

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: Hi, [rant] I'm just sick of the idiocy of Linux/Unix with there case sensitive file systems! Google'ing a round for the reason for this, it seems that in the 60's, it was C programmers that decided that searching for case sensitive files was easier to implement (and

Re: [fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread kyan
On Fri, Feb 24, 2012 at 6:29 PM, Everton Vieira tonvie...@gmail.com wrote: Doesn't work this code doesn't compile: Sorry, I forgot to mention that advanced record syntax works in Delphi mode only. To compile it you must change {$mode objfpc} to {$mode Delphi}. See also:

Re: [fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread Jonas Maebe
On 24 Feb 2012, at 17:50, kyan wrote: Sorry, I forgot to mention that advanced record syntax works in Delphi mode only. To compile it you must change {$mode objfpc} to {$mode Delphi}. Or add {$modeswitch advancedrecords} after {$mode objfpc}

Re: [fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread Everton Vieira
Is true, with {$modeswitch advancedrecords} worked. But i dont see much sense in put a diretive for enable a new feature. 2012/2/24 Jonas Maebe jonas.ma...@elis.ugent.be On 24 Feb 2012, at 17:50, kyan wrote: Sorry, I forgot to mention that advanced record syntax works in Delphi mode only.

Re: [fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread Everton Vieira
static; should be a keyword, doesn't? 2012/2/24 Everton Vieira tonvie...@gmail.com Is true, with {$modeswitch advancedrecords} worked. But i dont see much sense in put a diretive for enable a new feature. 2012/2/24 Jonas Maebe jonas.ma...@elis.ugent.be On 24 Feb 2012, at 17:50, kyan

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Marco van de Voort
In our previous episode, Sven Barth said: Anybody know of other Linux file systems that have a case insensitive option? I really thought ext2 had this, but searching now through the man pages, it seems I was mistaken. Anybody know if Btrfs would have such an option? Did you know that

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Noa Shiruba
Hi, You can get similar problems when copying code from Windows to OS X, because OS X is not only case insensitive, it normalizes UTF characters. Well that's a good thing in the long run, because you can guarantee more matches if you always normalize. My recommendation: If you have the

Re: [fpc-pascal] Re: Class const of array of record.

2012-02-24 Thread Jonas Maebe
On 24 Feb 2012, at 18:07, Everton Vieira wrote: static; should be a keyword, doesn't? No, it's not a keyword. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal