A simple but fully functional kludge to make lo compatible with Delphi is
type lo=byte;
Unfortunately for the similar cases of hi and swap you must provide a function
which cannot be used in a manifest constant expression.
___
WEB.DE DSL D
Hello!
In order to address the endian problem I use some auxiliary types to access the
entities:
(* Standard types *)
type
t_32u=longint; // 32 bit unsigned
t_bool=boolean;
(* Endian types *)
(*$a1 *)
type
t_intel_32u=object // Delphi forbids "packed object"; trusting $a1 instead...
It seems that we need a new parameter modifier "out_non_finalize" since "out"
includes a finalization.
We had a similar discussion with "constref".
Maybe we need a comprehensive method to describe calling conventions, see e.g.
http://mantis.freepascal.org/view.php?id=16697 or the discussion abo