Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-07

Need to declare FindIntToIdent in Classesh.inc

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zaher dirkey
Hi,
I need make this functions founded in classes.inc
function FindIntToIdent(AIntegerType: Pointer): TIntToIdent;
function FindIdentToInt(AIntegerType: Pointer): TIdentToInt;

to be declared in classesh.inc as like as IdentToInt or IntToIdent I need it for my XML RTTI property writer/reader
http://sourceforge.net/projects/minilib

you can see my
mnXMLFPClasses.pas
mnXMLRttiWriter.pas
procedure TmnXMLRttiWriter.WriteProperty

Thanks in advance

zaher dirkey
Michael Van Canneyt
to zaher dirkey
zaher dirkey wrote
Hi, I need make this functions founded in classes.inc function FindIntToIdent(AIntegerType: Pointer): TIntToIdent; function FindIdentToInt(AIntegerType: Pointer): TIdentToInt;

Why don't you use the IdentToInt and IntToIdent functions ?

The streaming in lazarus works perfectly without these 2 functions, and exposing an internal function is not a good idea; Then we cannot change them anymore.

Michael.

zaher dirkey
to Michael Van Canneyt

IdentToInt use Map array (Map: array of TIdentMapEntry) not IntConstList with TIdentToInt registered functions
And i emulating writing property values like as "procedure TWriter.WriteProperty" in writer.inc.

Michael Van Canneyt wrote 21 lines
On Tue, 3 Jul 2007, zaher dirkey wrote: > Hi, > I need make this functions founded in classes.inc > function FindIntToIdent(AIntegerType: Pointer): TIntToIdent; > function FindIdentToInt(AIntegerType: Pointer): TIdentToInt; Why don't you use the IdentToInt and IntToIdent functions ? The streaming in lazarus works perfectly without these 2 functions, and exposing an internal function is not a good idea; Then we cannot change them anymore. Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
zaher dirkey
Michael Van Canneyt
to zaher dirkey
zaher dirkey wrote
IdentToInt use Map array (Map: array of TIdentMapEntry) not IntConstList with TIdentToInt registered functions And i emulating writing property values like as "procedure TWriter.WriteProperty" in writer.inc.

It's done, revision 7943.

Michael.
y