Re: [fpc-pascal] red( clGrayText)

2014-12-01 Thread Mattias Gaertner
On Mon, 01 Dec 2014 22:01:15 -0200 Philippe wrote: >[...] > http://wiki.lazarus.freepascal.org/Colors#System_colors [1] > > > > I have seen it ... but did not catch that it may not work > with red( x) ... making it more simple, it means that the range of > values used for those constants as clGr

Re: [fpc-pascal] red( clGrayText)

2014-12-01 Thread Philippe
Em 01.12.2014 20:04, Mattias Gaertner escreveu: > On Mon, 01 Dec 2014 15:17:04 -0200 > Philippe wrote: > >> using -Cr (Range Check) option, red( clGrayText) as example, throw an exception! how should I program "red" (or green, blue and may be some others) functions to avoid that? should I wr

Re: [fpc-pascal] red( clGrayText)

2014-12-01 Thread Mattias Gaertner
On Mon, 01 Dec 2014 15:17:04 -0200 Philippe wrote: > > > using -Cr (Range Check) option, red( clGrayText) as example, throw > an exception! > > how should I program "red" (or green, blue and may be > some others) functions to avoid that? > > should I write red( clGrayText > and $ff) ?

Re: [fpc-pascal] Helper type and class fields

2014-12-01 Thread silvioprog
On Mon, Dec 1, 2014 at 4:49 PM, Sven Barth wrote: > Am 01.12.2014 18:59 schrieb "silvioprog" : > > > > Hello, > > > > From the Embarcadero wiki: > > > > "A helper type may not declare instance data, but class fields are > allowed." ( > http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Rec

Re: [fpc-pascal] Helper type and class fields

2014-12-01 Thread Sven Barth
Am 01.12.2014 18:59 schrieb "silvioprog" : > > Hello, > > From the Embarcadero wiki: > > "A helper type may not declare instance data, but class fields are allowed." ( http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi) ). > > In Delphi it compiles fine: > > TFoo =

[fpc-pascal] Helper type and class fields

2014-12-01 Thread silvioprog
Hello, >From the Embarcadero wiki: "A helper type may not declare instance data, but class fields are allowed." ( http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi) ). In Delphi it compiles fine: TFoo = class end; TBar = class helper for TFoo private cla

[fpc-pascal] -CR option and simplehtmltreeparser

2014-12-01 Thread Philippe
compiling simplehtmltreeparser with -CR option I get: F:lazaruscomponentsinternettoolsdatasimplehtmltreeparser.pas(591,13) Error: Incompatible type for arg no. 2: Got "Class Of INamespace", expected "TClass" here is the line .. function TNamespaceList.getNamespace(i: integer): INamespace;

[fpc-pascal] red( clGrayText)

2014-12-01 Thread Philippe
using -Cr (Range Check) option, red( clGrayText) as example, throw an exception! how should I program "red" (or green, blue and may be some others) functions to avoid that? should I write red( clGrayText and $ff) ? ... another better way? Philippe __

[fpc-pascal] SameValue and +-Infinity

2014-12-01 Thread Valdas Jankūnas
Hello, today I discovered that SameValue(infinity, neginfinity) returns TRUE. Why? It should be FALSE. Or not? Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64 -- Valdas Jankūnas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] mORMot

2014-12-01 Thread Alan Krause
I have used one specific part of it for PDF generation, and have no complaints. Alan -- Alan L. Krause jr.al...@shermanloan.com*Manager of Software Development*Voice: (760) 634-1700Sherman and Associates, Inc. Fax: (760) 634-1992 On Mon,

Re: [fpc-pascal] Question about functions returning a string

2014-12-01 Thread Ewald
On 12/01/2014 04:34 AM, leledumbo wrote: >> So in general, one should not use managed types in the prototype of an >> exported (public) function? > > Bingo. At least not until we have properly sharable RTL. The problem lies not with a sharable RTL. As mentioned, I do not want to /use/ these manag

[fpc-pascal] mORMot

2014-12-01 Thread Mark Morgan Lloyd
Discussion elsewhere has mentioned mORMot as a development framework. It claims to work with both Delphi and FPC: is anybody actively using it "in anger", so that I can pass the confirmation back to where I saw this mentioned? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions