[fpc-pascal] Sparse files and and copy-on-write filesystems

2013-10-26 Thread Mark Morgan Lloyd
think I'd prefer to be able to use raw files. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] [OT] sealed?

2013-10-08 Thread Mark Morgan Lloyd
this). FPC supports this since 2.4.2. Does it prevent the creation of class helpers? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] fcl-process, SimpleIPC and pipes

2013-10-08 Thread Mark Morgan Lloyd
to explore issues of naming etc., but porting to Windows turned out to be problematic despite my having used the MS/IBM variant in the past. Use SimpleIPC unless you have an informed reason not to. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-07 Thread Mark Morgan Lloyd
understand it- should handle membar itself on architectures that can benefit from it. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-07 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 07 Oct 2013, at 09:14, Mark Morgan Lloyd wrote: Benito van der Zander wrote: In the end I stuck in code to increment/decrement a counter, and looked for it to be explicitly 0 or 1. Do you need to put a memory barrier around that, or does the critical section take care

Re: [fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-07 Thread Mark Morgan Lloyd
. They also always require a native alignment on all platforms, because those are cpu limitations for atomic instructions. On 07 Oct 2013, at 11:40, Mark Morgan Lloyd wrote: Thanks Jonas, noted. For completeness, is there a way to force one? See http://www.freepascal.org/docs-html/rtl/system

[fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-06 Thread Mark Morgan Lloyd
); fails where indicated since the lock is owned by the current thread so TryEnter has succeeded. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist

Re: [fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-06 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Sun, 6 Oct 2013, Mark Morgan Lloyd wrote: Is there a preferred way of reading back whether something (including the current thread) has already entered a TCriticalSection? To my knowlede this does not exist. The Microsoft implementation of a critical section

[fpc-pascal] Socket error messages

2013-09-24 Thread Mark Morgan Lloyd
-ccr.sourceforge.net/docs/rtl/sockets/fpconnect.html actually describes a variant of Connect that's not documented for fpconnect. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc

Re: [fpc-pascal] Socket error messages

2013-09-24 Thread Mark Morgan Lloyd
() But aren't those EsysEINVAL rather than EsockEINVAL etc.? I notice that the example for fpconnect at http://lazarus-ccr.sourceforge.net/docs/rtl/sockets/fpconnect.html actually describes a variant of Connect that's not documented for fpconnect. -- Mark Morgan Lloyd markMLl .AT. telemetry.co

Re: [fpc-pascal] lnet for TCP daemon

2013-09-12 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 09/11/2013 07:22 PM, Mark Morgan Lloyd wrote: I'd normally use a thread for this, but I've already got lnet's telnet client running in the program so would rather stick to the same library if possible. AFAIK, Lnet does not do threading internally (as does AsyncPro

Re: [fpc-pascal] lnet for TCP daemon

2013-09-12 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Michael Schnell wrote: On 09/11/2013 07:22 PM, Mark Morgan Lloyd wrote: I'd normally use a thread for this, but I've already got lnet's telnet client running in the program so would rather stick to the same library if possible. AFAIK, Lnet does not do threading

Re: [fpc-pascal] lnet for TCP daemon

2013-09-12 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 09/12/2013 12:47 PM, Mark Morgan Lloyd wrote: I've concluded that using a thread is, in fact, preferable True. It's a pity that Synapse and friend (especially SynaSer) does does not implement internal threads that throw appropriate events in the Main Thread when

[fpc-pascal] lnet for TCP daemon

2013-09-11 Thread Mark Morgan Lloyd
client running in the program so would rather stick to the same library if possible. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc

[fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
e.g. . (if not followed by a digit), ^ and possibly others? Syntax errors are acceptable. Truncation isn't. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc

Re: [fpc-pascal] Re: Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
leledumbo wrote: Use JEDI Code Formatter with max line length 78 and let the magic works... Worth remembering, thanks :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
Howard Page-Clark wrote: On 06/09/2013 14:10, Mark Morgan Lloyd wrote: I'm sure there isn't a single right answer to this question, but if transferring Pascal source to a system that enforces short lines (e.g. 78 chars + CRLF) what's the best automatic breaking rule? One possibility

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
to other dialects. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] How to clear the value of a field in a table using parameters?

2013-08-30 Thread Mark Morgan Lloyd
and won't be told since null or true - null and so on. A bit like some political movements, frankly :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc

Re: [fpc-pascal] Compilation Error At revision 25270.

2013-08-16 Thread Mark Morgan Lloyd
easier for everybody- including yourself- if you used the stable compiler (2.6.2) as your starting point. Also, if you want to know what revision you're at then use svn info rather than svn up. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

[fpc-pascal] User-defined operators and dummy parameters

2013-08-10 Thread Mark Morgan Lloyd
] := 3; a1[3] := 4; a1[4] := 5; WriteLn('a1:'); print(a1); WriteLn('+/ a1:'); WriteLn(reduce + a1); WriteLn end. This is of no particular importance, I'm just exploring capabilities. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Mark Morgan Lloyd
: it was decided fairly early that it had probably been compiled with MS tools, but inspection of the calling convention suggested that it was non-standard and it took a lot of head scratching before people decided which compiler/linker and what pragmata had been used. -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] RE: FPIDE 1.0.6

2013-07-31 Thread Mark Morgan Lloyd
at something comparable with this: FreePascal IDE for Linux for i386 Target CPU: i386 Version 1.0.12 2012/11/14 -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] ++ and --

2013-07-30 Thread Mark Morgan Lloyd
. are fairly unambiguous: they're almost macro expansions and as such they don't mandate any extra overloadable operators etc. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] what is the FPC equivalent of Delphi's zlib unit?

2013-07-28 Thread Mark Morgan Lloyd
Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] RE: FPIDE 1.0.6

2013-07-24 Thread Mark Morgan Lloyd
old compiler. It will be difficult to get feedback on outdate releases... /If/ that's the case, then he's got FPC 2.0.2. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Cross compiling Windows to arm-linux

2013-07-23 Thread Mark Morgan Lloyd
that. But how do I accomplish that feat? This is a placeholder pending somebody more experienced commenting. A number of people have reported similar problems over the last few months, e.g. http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/32106 -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-07-19 Thread Mark Morgan Lloyd
for that sort of device will without thinking use techniques that FPC would have difficulty accommodating. http://www.theregister.co.uk/2013/07/18/how_to_write_apps_for_the_pebble_smartwatch/ -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] Wiki licensing

2013-07-06 Thread Mark Morgan Lloyd
which no longer builds. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Re: (OT) Re: How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?

2013-07-04 Thread Mark Morgan Lloyd
but exploiting them would take a non-standard driver. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Re: It is possible to pass command line to pascal

2013-07-02 Thread Mark Morgan Lloyd
. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] It is possible to pass command line to pascal

2013-06-30 Thread Mark Morgan Lloyd
implementations) puts version information into /proc/version which is accessible as a standard file- no external program required. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] It is possible to pass command line to pascal

2013-06-30 Thread Mark Morgan Lloyd
you're writing shell or in a scripting language such as Perl where it might be less trouble than searching CPAN for the appropriate extension module. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux - MIPS-linux?

2013-06-16 Thread Mark Morgan Lloyd
toolchain, one of the known issues is that it has to load the right .so file on the target. The big question is whether it also implies that there has to be special support for the Atheros (Broadcom?) target in the RTL. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] why is MIPS not equivalent to MIPSEB

2013-06-15 Thread Mark Morgan Lloyd
://wiki.lazarus.freepascal.org/Native_MIPS_Systems and that they worked here. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remember exactly where that one got to- I suggest

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Dennis Poon wrote: Since I have spent days but still cannot produce a helloworld binary for MIPS big endian, I need someone to to produce that for me so I can test it on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remember exactly where that one got to- I suggest

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remember exactly where

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux - MIPS-linux?

2013-06-12 Thread Mark Morgan Lloyd
binutils for MIPS linux? I've already given you a link, on our wiki, describing how to build them from scratch on a Debian system. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux - MIPS-linux?

2013-06-12 Thread Mark Morgan Lloyd
result in your having usable tools. If you are referring to a different link, please kindly send again as I did not see it on the fpc discussion list. http://lists.freepascal.org/lists/fpc-pascal/2013-June/038362.html -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Mark Morgan Lloyd
of last year and did some careful builds. I can't remember exactly where that one got to- I suggest that you look back through the fpc-devel and fpc-pascal archive. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] OT: Re: http://www.freepascal.org/future.var

2013-06-06 Thread Mark Morgan Lloyd
this :) That's clear enough, thanks! Of course I meant I can not and will not ... Sure, I understood you: German and Dutch are much alike in this particular construction where you leave out one not/nicht/niet, I think ;) English is the same. Don't worry about it. -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] OT: Re: http://www.freepascal.org/future.var

2013-06-06 Thread Mark Morgan Lloyd
Howard Page-Clark wrote: On 06/06/2013 08:32, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 6-6-2013 7:52, Florian Klämpfl wrote: Reinier Olislagers reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org schrieb: On 5-6-2013 22:02, Florian Klämpfl wrote: I'am opposed to an LLVM

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux - MIPS-linux?

2013-06-05 Thread Mark Morgan Lloyd
updated document or cross compiler already ready for use? Also see the link it cites, which describes building a Linux-hosted cross-compiler as a necessary stage towards getting it running natively on MIPS. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] how to generate Free Pascal program for Open source router OpenWrt?

2013-06-04 Thread Mark Morgan Lloyd
in no way an expert: Google suggests that's MIPS24k, what's the output from cat /proc/cpuinfo on that box? What does the file command have to say about your binary? What version of FPC are you using? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Program not running

2013-05-29 Thread Mark Morgan Lloyd
by the fpc wrapper. I think in general it will be in the same directory as the fpc wrapper gets placed. So which fpc should give this, and then there'll be a symlink ppcarm or whatever. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-24 Thread Mark Morgan Lloyd
into a party with a friend, find two people in earnest conversation, stand next to them talking loudly and expect them to be happy about it? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-24 Thread Mark Morgan Lloyd
the number of complaints I see about this behaviour irritating- it's difficult enough to keep abreast of things as it is. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] TProcess, Batch script and Windows

2013-05-17 Thread Mark Morgan Lloyd
to use [poNoConsole] option. Is this a bug? As far as I know, batch files need CMD and that needs a console ? For completeness: I've certainly got a Delphi program that can shell out to cmd in its main window, but it was non-trivial to code. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier FarPointerh

2013-05-09 Thread Mark Morgan Lloyd
compiler version supported by the build procedure is 2.6.2. This wouldn't solve historical questions for somebody trying to get every major version on his system (e.g. which version of FPC should I use to build 2.4.2) but might help in the future. -- Mark Morgan Lloyd markMLl .AT. telemetry.co

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier FarPointer

2013-05-08 Thread Mark Morgan Lloyd
that anything like that would be counterproductive, since it implies that prompt support will be given for things that are even dumber- like trying to compile FPC using Delphi :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier FarPointer

2013-05-07 Thread Mark Morgan Lloyd
with that override, despite being told by one of the core developers not to? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier FarPointer

2013-05-07 Thread Mark Morgan Lloyd
Eric Kom wrote: On 07/05/2013 10:12, Mark Morgan Lloyd wrote: Eric Kom wrote: Good day, Compile failed. Please see below the error/bug. svn up make clean make OVERRIDEVERSIONCHECK=1 NOGDB=1 OPT='-O- -gl -Xs-' all You've already posted that, this isn't a chatroom and you don't have

Re: [fpc-pascal] MS DOS 8086 compiler?

2013-04-28 Thread Mark Morgan Lloyd
to when even embedded processors are based on a newer architecture? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] MS DOS 8086 compiler?

2013-04-28 Thread Mark Morgan Lloyd
could be valuable if it generated reliable code for something like vtprolog.pas, since this implements its own garbage collection relying on detailed knowledge of how Turbo Pascal manages its heap. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] MS DOS 8086 compiler?

2013-04-28 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Actually, I have a vintage IBM PC 5150, with a 4.77 MHz 8088 processor, so this isn't true, it's very testable actually :) However, the i8086 code generator still generates some 186/286+ instructions, so it doesn't

Re: [fpc-pascal] Re: Mipsel compilation: changing elf flags?!

2013-04-22 Thread Mark Morgan Lloyd
to be able to test the MIPS etc. targets on a fairly regular basis, but Qemu (running on the systems available here) quite simply turned out to not be fast enough, and I'm struggling to find time to revisit getting an SGI system running for big-endian work. -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] GetCurrentDir

2013-04-22 Thread Mark Morgan Lloyd
can't parse. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] Mipsel compilation: changing elf flags?!

2013-04-21 Thread Mark Morgan Lloyd
think that the problem is that /some/ kernel builds are expecting a particular ELF header on /some/ machine types. If OP could identify the correct parameter for ld it might be possible to use fpc's -k option. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] LLVM (again)

2013-04-19 Thread Mark Morgan Lloyd
such conciseness is frowned upon as an attribute of brace-using languages :-) :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] socket timeout

2013-04-16 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 04/16/2013 11:26 AM, Xiangrong Fang wrote: How can I set the connection and read/write timeout when using socket in free pascal? I seem to remember that synapse can do this. Otherwise for non-standard protocols use fpconnect(), fpselect() etc. -- Mark Morgan Lloyd

[fpc-pascal] Array assignment, and not-a-number

2013-04-15 Thread Mark Morgan Lloyd
? Is there an accessible not-a-number constant, to allow me to do something like var reduce: double= NAN; x := reduce + a1; with an appropriate definition of the + operator without risk that an error would try to evaluate it as an ordinary arithmetic expression? -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] Array assignment, and not-a-number

2013-04-15 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 15 Apr 2013, at 16:48, Mark Morgan Lloyd wrote: I was having a bit of fun earlier while waiting for a call. Am I correct in believing that something like typet1= array of integer; var a1: t1; x: integer; a1 := [1,2,3,4,5]; can't be done at present

Re: [fpc-pascal] Array assignment, and not-a-number

2013-04-15 Thread Mark Morgan Lloyd
as the parameter which I suppose is not entirely surprising. Using varnull as a placeholder seems safest, although it looks as though I can't initialise a variant at declaration... WTH, it's just a toy for the moment at least. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] Array assignment, and not-a-number

2013-04-15 Thread Mark Morgan Lloyd
, a pair of 2-D dynamic arrays and so on. If I understand things correctly it's not possible to define a generalised dynamic array parameter where the dimension (number of axes/indexes) as well as the rank (range of each index) is undefined. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-09 Thread Mark Morgan Lloyd
name unless it's able to contact DNS. I'll get onto nslookup, or just use temporary text (it's only salt for a password hash, and is stored). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-09 Thread Mark Morgan Lloyd
Tomas Hajny wrote: On Tue, April 9, 2013 10:14, Mark Morgan Lloyd wrote: waldo kitty wrote: . . diggin in, i note that it seems to use the system's uname function... but i think that is different than the command line uname or uname -a because none of my linux machine return their FQDN

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-09 Thread Mark Morgan Lloyd
Ludo Brands wrote: On 04/09/2013 10:14 AM, Mark Morgan Lloyd wrote: It might be notable that Debian doesn't volunteer a domain name unless it's able to contact DNS. I'll get onto nslookup, or just use temporary text (it's only salt for a password hash, and is stored). One of the problems

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-09 Thread Mark Morgan Lloyd
entered by the user. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

[fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-08 Thread Mark Morgan Lloyd
How best to get the (internet-style) domain name of a system? GetDomainName() appears to be returning (none) here on x86 Linux. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-08 Thread Mark Morgan Lloyd
waldo kitty wrote: On 4/8/2013 11:03, Mark Morgan Lloyd wrote: How best to get the (internet-style) domain name of a system? GetDomainName() appears to be returning (none) here on x86 Linux. do you mean the FQDN (Fully Qualified Domain Name)?? I mean that on the machine I'm working

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-08 Thread Mark Morgan Lloyd
waldo kitty wrote: On 4/8/2013 14:54, Mark Morgan Lloyd wrote: waldo kitty wrote: On 4/8/2013 11:03, Mark Morgan Lloyd wrote: How best to get the (internet-style) domain name of a system? GetDomainName() appears to be returning (none) here on x86 Linux. do you mean the FQDN (Fully

Re: [fpc-pascal] Re: TPQConnection: Duplicated error message.

2013-04-05 Thread Mark Morgan Lloyd
of the error are always available as fields in the exception class. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Re: TPQConnection: Duplicated error message.

2013-04-05 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Fri, 5 Apr 2013, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: Regarding the content of your question in the bug: AFAIU it's for backward compatibility. The generic db error shows the error message. The specialized PostgreSQL error does the same, but also

Re: [fpc-pascal] Hashes and CRCs

2013-04-05 Thread Mark Morgan Lloyd
it's readily available from the original author, unless of course he's chosen to do so. The truth is that FPC/Lazarus are still lacking something like Torry, and much of the freeware libraries or source that used to be indexed by it is probably now unavailable. -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] File Association and opening with already running app

2013-04-04 Thread Mark Morgan Lloyd
profile can be inconvenient. So far I've had no success porting that to Windows using named pipes, I suggest you look at how lhelp works (and confer with Reinier et al.). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] File Association and opening with already running app

2013-04-04 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 2013-04-04 10:45, Mark Morgan Lloyd wrote: So far I've had no success porting that to Windows using named pipes, Ah, thanks for the idea. SimpleIPC should be able to do the trick - similar to how apps communicate to a DebugServer (using dbugintf and SimpleIPC units

Re: [fpc-pascal] [OT] Re: Feature proposal: function-based assignment operatorst

2013-04-04 Thread Mark Morgan Lloyd
Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Hashes and CRCs

2013-04-04 Thread Mark Morgan Lloyd
and hash stuff including Skipjack, all believed good for FPC http://www.wolfgang-ehrhardt.de/ -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist

Re: [fpc-pascal] Re: String type compatibility

2013-04-03 Thread Mark Morgan Lloyd
on. It's got a couple of underlying string[255] declarations: is there a 16-bit Unicode equivalent which uses this syntax? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Re: String type compatibility

2013-04-03 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 03.04.2013 12:11, schrieb Mark Morgan Lloyd: I wonder if I could ask a related question. I was looking at some parser code yesterday that I wrote years ago, and that still compiles with TP5, TopSpeed and so on. It's got a couple of underlying string[255] declarations

Re: [fpc-pascal] Re: HMAC_SHA1 and FPC

2013-04-02 Thread Mark Morgan Lloyd
substitute for the original programmer knowing what he's doing, and for him documenting what he's done so that maintainers know what sort of external event can cause an issue. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

[fpc-pascal] Function header doesn't match error

2013-03-31 Thread Mark Morgan Lloyd
; relaxInuseCheck: boolean= false): boolean; .. It's that final declaration that goes wrong, but I can fix it by moving the class back into the implementation part. FPC 2.6.2 on Linux x86. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] Function header doesn't match error

2013-03-31 Thread Mark Morgan Lloyd
Flávio Etrusco wrote: On Sun, Mar 31, 2013 at 7:36 AM, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: I wonder whether anybody could throw some light on a curious error. I've just tried to move a class definition into the interface part of a unit, so that I could easily add a class

Re: [fpc-pascal] Function header doesn't match error

2013-03-31 Thread Mark Morgan Lloyd
Ewald wrote: Once upon a time, Mark Morgan Lloyd said: I wonder whether anybody could throw some light on a curious error. I've just tried to move a class definition into the interface part of a unit, so that I could easily add a class helper, but I'm getting an error borgumserverinterface.pas

Re: [fpc-pascal] Re: Feature proposal: function-based assignment operatorst

2013-03-30 Thread Mark Morgan Lloyd
Jürgen Hestermann wrote: Am 2013-03-29 11:20, schrieb Mark Morgan Lloyd: What is it about Pascal programmers and their assumption that verbosity is a prerequisite to clarity? Why do you think nobody is writing text in stenography? It would be much less text to write. But we use standard

Re: [fpc-pascal] Re: Feature proposal: function-based assignment operatorst

2013-03-29 Thread Mark Morgan Lloyd
more pernicious. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Example: regular expressions and hash-tables

2013-03-29 Thread Mark Morgan Lloyd
the 20 most common words. Also, it doesn't use a regular expression engine, since I didn't have one. If it's C++ and doesn't use regular expressions, is it really relevant here? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Re: Feature proposal: function-based assignment operatorst

2013-03-29 Thread Mark Morgan Lloyd
(and occasional journalist) this morning: PS: I like the idea of += in Pascal. How far do they take it? Is there a /=, *=, mod=, or=, xor=? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Feature proposal: function-based assignment operators

2013-03-28 Thread Mark Morgan Lloyd
extra operators like ⌊ for floor(), and then working out how to implement them :-) array1[array2[i]] := array1[array2[i]] ⌊ 42; array1[array2[i]] ⌊= 42; -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Feature proposal: function-based assignment operators

2013-03-28 Thread Mark Morgan Lloyd
like that, but I couldn't put my finger on it :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Re: OOP in FreePascal ARM-Embedded

2013-03-24 Thread Mark Morgan Lloyd
for? Regards, - Graeme - Sorry about my delay answering!!! I just wanted to know details about it (docs, some examples with code and compilation howto would be of great help) http://www.freepascal.org/docs.var -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

[fpc-pascal] FBAdmin

2013-03-24 Thread Mark Morgan Lloyd
for backchannel commands (e.g. so that a server could tell a client to choke work it's relaying for one particular user who's hogging bandwidth). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] FBAdmin

2013-03-24 Thread Mark Morgan Lloyd
Ludo Brands wrote: On 03/24/2013 10:54 AM, Mark Morgan Lloyd wrote: I've added a call to FBAdmin to what I'm working on, to get the full description of the server (i.e. comparable to PostgreSQL's version() function). Thanks Ludo :-) Is it possible to piggyback this onto an open Firebird

Re: [fpc-pascal] Re: Example: regular expressions and hash-tables

2013-03-23 Thread Mark Morgan Lloyd
of interpreted BASIC, which is about all that some management types know. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] a proposal about with syntax

2013-03-17 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Sven Barth said: Texas Instruments' Pascal had an extension of the with statement, IIRC it used = instead of AS With a=VeryLongNameForARecord, b=AnotherRecordWithAVeryLongName do ... Now THAT is really unpascalish... either := or the already

Re: [fpc-pascal] Re: Selective Class Helper

2013-03-14 Thread Mark Morgan Lloyd
much of the pain caused by C, and that strong type checking protected us from most of the rest. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist

Re: [fpc-pascal] Set size limit

2013-03-12 Thread Mark Morgan Lloyd
Ewald wrote: Once upon a time, Mark Morgan Lloyd said: No, because the elements in a set are dictated by their position. A set that can contain anything between 0 and 256 elements occupies 8 bytes in memory with the (bit representing the) 0 element at one end and the (bit representing the) 256

<    1   2   3   4   5   6   7   8   9   10   >