[fpc-pascal] Re: fpc-pascal Digest, Vol 83, Issue 52
Luis Fernando Del Aguila Mejía
luis3000 at ec-red.com
Wed May 25 16:05:21 CEST 2011
El 25/05/2011 01:35 a.m., fpc-pascal-request at lists.freepascal.org escribió:
> Question out of curiosity:
> Is there a reason why you allocate an array "by hand"?
Yes, getmem return NIL, when no more memory is available.
SetLength, no return NIL, It is work with Exceptions.
My intention was whether it could be done without using dynamic arrays
But two more questions:
1) At this program:
The literal String is at Data area.
Is the A variable points to Data Segment. ?
2) My computer is little endian. (intel)
When I do this:
a: = $ ABFE5689 / / Little endian $ 8956FEAB, it is ok
Writeln (Hi (a)) / / Show $ ABFE, it is ok
Writeln (Lo (a)) / / Show $ 5689, it is ok
In a Big Endian computer. What shows Hi and Lo?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal