Re: [fpc-pascal] Re: Lo

2011-01-13 Thread Tomas Hajny
On Thu, January 13, 2011 11:53, Jonas Maebe wrote: > > On 13 Jan 2011, at 09:32, Tomas Hajny wrote: > >> On Thu, January 13, 2011 09:01, _-jan...@web.de wrote: >>> A simple but fully functional kludge to make lo compatible with >>> Delphi is >>> >>> type lo=byte; >>> >>> Unfortunately for the simil

Re: [fpc-pascal] Re: Lo

2011-01-13 Thread Jonas Maebe
On 13 Jan 2011, at 09:32, Tomas Hajny wrote: On Thu, January 13, 2011 09:01, _-jan...@web.de wrote: 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

Re: [fpc-pascal] Re: Lo

2011-01-13 Thread Carsten Bager
> Well, you should probably mention that this replacement solution is not > portable to big endian platforms / targets. > > Tomas If one want to write portable code, what would be best, or would both work on a big endian platform. Carsten var b:byte; i:LongInt; b := i and 255; b:= i m

Re: [fpc-pascal] Re: Lo

2011-01-13 Thread Tomas Hajny
On Thu, January 13, 2011 09:01, _-jan...@web.de wrote: > 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. Well, y

[fpc-pascal] Re: Lo

2011-01-13 Thread _-jane-_
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