[fpc-pascal] Assigning pointer address
dhkblaszyk at zeelandnet.nl
dhkblaszyk at zeelandnet.nl
Mon Oct 1 13:55:55 CEST 2012
On 1 okt '12, michael.vancanneyt at wisa.be wrote:
> On Mon, 1 Oct
2012, dhkblaszyk at zeelandnet.nl [2]wrote:
>
>> Hi Tomas, Thanks for
clarifying. I will use PtrUInt to store the pointer address in. BTW: the
documentation it says not to use PtrInt because it's signed and
therefore smaller than a pointer (as in max value). Also there seems to
be an error in the documentation. On
http://www.freepascal.org/docs-html/rtl/system/ptruint.html [1] [4] it
is described that PtrUInt is an alias to DWord. However, it depends on
the architecture which type it actually is. Could someone please correct
the docs?
>
> What do you want to see corrected ?
>
> On 32-bit
systems, it is a DWord. The docs were generated on such a system,
> so
you get this definition.
>
> Michael.
>
_______________________________________________
> fpc-pascal maillist -
fpc-pascal at lists.freepascal.org [3]
>
http://lists.freepascal.org/mailman/listinfo/fpc-pascal [4]
If possible
I would like to see a remark mentioning that it's a QWord on 64bit and
Word on 16bit. That by itself would make thing clearer already.
In the
ideal case fpdoc should be adjusted so it can handle these defines.
However this will be very complex I assume.
Darius
Links:
------
[1]
http://www.freepascal.org/docs-html/rtl/system/ptruint.html
[2]
mailto:dhkblaszyk at zeelandnet.nl
[3]
mailto:fpc-pascal at lists.freepascal.org
[4]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20121001/aaf0326f/attachment.html>
More information about the fpc-pascal
mailing list