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+
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
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;
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.
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
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.
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
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)
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;
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
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
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
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
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
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:
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;
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
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
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:
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}
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.
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
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
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
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
25 matches
Mail list logo