Re: [fpc-pascal] FPC Advanced Records

2012-03-10 Thread Sven Barth
Am 09.03.2012 23:26, schrieb Mark Morgan Lloyd: Martin wrote: On 09/03/2012 21:26, Mark Morgan Lloyd wrote: but is there any way to define something like an endianness-correcting type, i.e.: Type TAWSHeader=Record ThisSize: WordLE; .. where by the time ThisSize is accessed any disparity has

Re: [fpc-pascal] FPC Advanced Records

2012-03-10 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 09.03.2012 23:26, schrieb Mark Morgan Lloyd: Martin wrote: On 09/03/2012 21:26, Mark Morgan Lloyd wrote: but is there any way to define something like an endianness-correcting type, i.e.: Type TAWSHeader=Record ThisSize: WordLE; .. where by the time ThisSize is

[fpc-pascal] Re: xterm -e program-compiled-with-fpc2.4.0 doesn't work

2012-03-10 Thread max
Jonas Maebe-2 wrote The internal representation of real numbers has never been changed in FPC. . I may have expressed myself incorrectly, but there was the case when records of real numbers written to disk by a program compiled with fpc 1.0.4 , when read back by the same program compiled

[fpc-pascal] status of MIPS port

2012-03-10 Thread Jorge Aldo G. de F. Junior
Whats the status of the MIPS port ? I am currently working on a project called OpenTik, wich aims at replacing mikrotik's routeros with a completely opensource alternative. Originally i wanted to use FreeBSD on ARM but theres no freepascal compiler for this. I switched to a Linux based system

RE : [fpc-pascal] FPC Advanced Records

2012-03-10 Thread Ludo Brands
where by the time ThisSize is accessed any disparity has been corrected? Not sure if this will be of any use. but you can always define an assignment incompatible type WordLE = record data: Word; end; and define all required overloaded operators Or an endian independant

Re: [fpc-pascal] fpWeb: Error when trying to call a module without an action

2012-03-10 Thread michael . vancanneyt
On Fri, 9 Mar 2012, michael.vancann...@wisa.be wrote: On Fri, 9 Mar 2012, Sven Barth wrote: I'm using the embedded webserver variant and the error only surfaced after I added a second module which let's me assume that the problem is the same as this:

Re: [fpc-pascal] status of MIPS port

2012-03-10 Thread Mark Morgan Lloyd
Jorge Aldo G. de F. Junior wrote: Whats the status of the MIPS port ? I am currently working on a project called OpenTik, wich aims at replacing mikrotik's routeros with a completely opensource alternative. Originally i wanted to use FreeBSD on ARM but theres no freepascal compiler for this.

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-10 Thread Joao Morais
On Fri, Mar 9, 2012 at 06:36, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 09 Mar 2012, at 10:23, Sven Barth wrote: The buzzword for this is Fixed Point Arithmetic. See here: http://en.wikipedia.org/wiki/Fixed-point_arithmetic And in principle, it's exactly what currency should use. And