Re: [fpc-pascal] [OT] Sven, don't defect to the dark side!

2013-03-12 Thread Mark Morgan Lloyd
going to far ;) : Studying isn't over until the examiner's sung :-) -- 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: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-11 Thread Mark Morgan Lloyd
so that it could be stored and moved around without grave risk. Which obviously introduces issues when communities with different salt are merged... and so on :-) -- 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] Set size limit

2013-03-11 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] Set size limit

2013-03-11 Thread Mark Morgan Lloyd
to handle something like a bitboard for Go might be attractive though. -- 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] Set size limit

2013-03-11 Thread Mark Morgan Lloyd
Daniel Gaspary wrote: On Mon, Mar 11, 2013 at 7:09 AM, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: That was pretty much my gist. Since these days Unicode is larger than 65536 codepoints I don't think there's any advantage to expanding sets from 256 to 65536 elements, efficient

Re: [fpc-pascal] Re: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-10 Thread Mark Morgan Lloyd
reinierolislag...@gmail.com wrote: On 9-3-2013 14:08, Mark Morgan Lloyd wrote: I don't know whether anybody can help me with this one, but I'm working on something where I need a program to be able to create login-capable database users on-the-fly. I was hoping to be able to use either

Re: [fpc-pascal] Re: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-10 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 9-3-2013 19:56, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 9-3-2013 17:31, Mark Morgan Lloyd wrote: It identifies itself as 2.5, and by that I explicitly mean that I'm querying it rather than trusting any claims by the Debian package maintainer

Re: [fpc-pascal] Re: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-10 Thread Mark Morgan Lloyd
me off list. Thanks very much, noted. -- 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: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-10 Thread Mark Morgan Lloyd
is basically a fancy finger daemon. -- 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

Re: [fpc-pascal] Set size limit

2013-03-10 Thread Mark Morgan Lloyd
/really/ do with checking how many bits fit in a byte :-) -- 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: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-10 Thread Mark Morgan Lloyd
/firebirduser.zip and in the fpc_laz_patch_playground repository itself (directory fbcreatedb) Comments welcome. Looks good :-) -- 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: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-10 Thread Mark Morgan Lloyd
/firebirduser.zip and in the fpc_laz_patch_playground repository itself (directory fbcreatedb) Subject to a maximum user name length of 31 characters on Firebird. The manual suggests that PostgreSQL has a limit of 64. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

[fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Mark Morgan Lloyd
this working in the past? -- 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] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Mark Morgan Lloyd
Ludo Brands wrote: On 03/09/2013 02:08 PM, Mark Morgan Lloyd wrote: I don't know whether anybody can help me with this one, but I'm working on something where I need a program to be able to create login-capable database users on-the-fly. I was hoping to be able to use either PostgreSQL

Re: [fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Mark Morgan Lloyd
, accessing it is another, managing users a third and so on. I could have been naive in assuming that isql's CREATE USER was submitted as such, rather than being translated to API call(s) inside the program. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Re: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 9-3-2013 17:31, Mark Morgan Lloyd wrote: [Nod] I suspect that the key is the way that Firebird documents various activities as differing subsets of SQL, i.e. defining a table is one subset, accessing it is another, managing users a third and so on. I could have

Re: [fpc-pascal] Get variable name at runtime

2013-03-06 Thread Mark Morgan Lloyd
in the past who thought it was entirely acceptable to make manual edits to compiler output (typically on Intel blue boxes) before running it through the assembler, and it's very high on my list of Thou Shalt Nots. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] Get variable name at runtime

2013-03-06 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Unfortunately pascal macro's are rather limited compared to C. I know I know, you could potentially open up a can of worms, but sometimes more control is required. There is nothing restraining anybody using

Re: [fpc-pascal] Does FPC 2.8.0 can actually still be called Pascal ?

2013-03-01 Thread Mark Morgan Lloyd
stuffed into e.g. stackframe handling to support features that the compiler doesn't know aren't being used nearby that performance and maintainability both suffer. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Object pascal language compatiblity - was: Does FPC 2.8.0 can actually still be called Pascal ?

2013-03-01 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] Object pascal language compatiblity - was: Does FPC 2.8.0 can actually still be called Pascal ?

2013-03-01 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On Fri, Mar 01, 2013 at 09:23:29AM +, Mark Morgan Lloyd wrote: Sven Barth wrote: An llvm target will move the optimisation burden away from fpc, which would be very interesting. While we would welcome a LLVM backend it is basically a consent in the development team

[fpc-pascal] Case based on type

2013-03-01 Thread Mark Morgan Lloyd
. something like case TypeOf(db) ? -- 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

[fpc-pascal] Overriding or reimplementing a property

2013-03-01 Thread Mark Morgan Lloyd
the Connected property to point to code that can e.g. check that all prerequisite libraries are available before trying to activate the object? -- 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] Case based on type

2013-03-01 Thread Mark Morgan Lloyd
Sven Barth wrote: On 01.03.2013 23:35, Mark Morgan Lloyd wrote: Given a procedure definition like procedure checkLibrariesAndConnect(db: TSQLConnection); is there a more elegant way of performing type-specific actions than begin if db is TPQConnection then begin end; if db

Re: [fpc-pascal] Re: fpc registry unit

2013-03-01 Thread Mark Morgan Lloyd
initially installed from the binary release files or from a correctly built distro-specific package. I normally build from svn, but am used to having to copy /etc/fpc.cfg when bootstrapping as the one out of tree file. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] Case based on type

2013-03-01 Thread Mark Morgan Lloyd
set found=true on match or break. end; typ:=typ.classparent; end; Thanks, detail noted. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal

Re: [fpc-pascal] How to get info about CPU and Memory usage?

2013-02-28 Thread Mark Morgan Lloyd
, since- I'm pretty sure- it's what's used by ps so there are certain things that can't be changed. The non-pid stuff, specifically things like /proc/cpuinfo, is far more of a problem. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] Does FPC 2.8.0 can actually still be called Pascal ?

2013-02-28 Thread Mark Morgan Lloyd
it on Ruby and Java, but it's not Pascal syntax. Same goes for array constructors. I actually starting to ask the same questions of Graeme, do we really want to follow Delphi instead of creating a more Pascal like dialect ? As long as it has the dangling-else flaw, it's Pascal. -- Mark Morgan Lloyd

Re: [fpc-pascal] Place of elements in record

2013-02-28 Thread Mark Morgan Lloyd
pleasant. -- 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] OOP in FreePascal ARM-Embedded

2013-02-27 Thread Mark Morgan Lloyd
Juan Duran wrote: Hi there, Is anybody working on being able to uses classes, methods, etc (OOP) in freepascal compiler for ARM embedded platform? What are you looking for that isn't already documented as being provided? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: [fpc-pascal] pascal compiler for ardurino

2013-02-27 Thread Mark Morgan Lloyd
platform and there is no direct Pascal equivalent, i.e. there's an AVR target but it won't have Arduino-compatible handling of the various I/O capabilities. -- 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: differences between .pp and .pas files

2013-02-26 Thread Mark Morgan Lloyd
for. -- 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] differences between .pp and .pas files

2013-02-25 Thread Mark Morgan Lloyd
a unique extension to ensure that a naive highlighter doesn't get confused. -- 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

[fpc-pascal] What's a unit?

2013-02-19 Thread Mark Morgan Lloyd
. Is there any way of doing something like if LibCapShim is TObject then if LibCapShim = nil then (* Initialisation failed*) exit; without the compiler objecting when it finds itself looking at a unit name in isolation? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: [fpc-pascal] What's a unit?

2013-02-19 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Does a unit- rather than something it contains- have any sort of representation which is recognisably distinct from an object? Maybe. But what it certain doesn't have is a runtime instance. unit is mostly a compiletime

Re: [fpc-pascal] What's a unit?

2013-02-19 Thread Mark Morgan Lloyd
ik wrote: On Tue, Feb 19, 2013 at 3:31 PM, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: Does a unit- rather than something it contains- have any sort of representation which is recognisably distinct from an object? I've got a situation where if a library (.dll or .so) is opened

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-19 Thread Mark Morgan Lloyd
better than the default main page. It does appear to have quite a lot going for 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

Re: [fpc-pascal] What's a unit?

2013-02-19 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] What's a unit?

2013-02-19 Thread Mark Morgan Lloyd
) with the methods preinitialised? -- 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] What's a unit?

2013-02-19 Thread Mark Morgan Lloyd
Sven Barth wrote: On 19.02.2013 18:08, Mark Morgan Lloyd wrote: Sven Barth wrote: Thanks Sven, looks interesting and I'll play with it presently. Can an extended record's fields/methods be set up at compilation time, or do they need to be done by code? The example I've given

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-18 Thread Mark Morgan Lloyd
unanticipated demands on the software doing the job if the format gets tweaked between versions. -- 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] OT a bit - Planet Object Pascal

2013-02-17 Thread Mark Morgan Lloyd
their work if somebody pays them for blogging. But you don't do so (obviously I understand this), they have to earn their living by other means. And sometimes, having a high-profile blogger pushing one particular product can be counterproductive since he ends up a figure of fun. -- Mark Morgan

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread Mark Morgan Lloyd
somebody who's presented a brave and optimistic face on Borland's behalf for several decades, as well as a few others I've known on a private conferencing service representing Borpricocadero, IBM and Sun. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Configuration file handling

2013-02-16 Thread Mark Morgan Lloyd
Andrew Brunner wrote: On 02/15/2013 04:54 PM, Mark Morgan Lloyd wrote: If multiple, related, programs running on unix (Linux, Solaris etc.) refer to the same configuration file accessed via a TIniFile, is there any recommended good practice to ensure that they don't try to update

Re: [fpc-pascal] Re: Configuration file handling

2013-02-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 16-2-2013 9:09, Sven Barth wrote: On 15.02.2013 23:54, Mark Morgan Lloyd wrote: If multiple, related, programs running on unix (Linux, Solaris etc.) refer to the same configuration file accessed via a TIniFile, is there any recommended good practice to ensure

Re: [fpc-pascal] Configuration file handling

2013-02-16 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: If multiple, related, programs running on unix (Linux, Solaris etc.) refer to the same configuration file accessed via a TIniFile, is there any recommended good practice to ensure that they don't try to update

[fpc-pascal] Configuration file handling

2013-02-15 Thread Mark Morgan Lloyd
. multiple logins trying to write setup information at the same time. The more risky case is if there are e.g. multiple daemons or apps trying to save state when a UPS signals imminent shutdown. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-13 Thread Mark Morgan Lloyd
not sure the message reached its mark. It's possibly unfortunate that Borland chose to use try for both constructs, rather than having distinct try-except-end and start-finally-end forms. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-13 Thread Mark Morgan Lloyd
and then-else are about the only places where there is this sort of composite block, and finally-except-end is even uglier since parts of all three blocks may be executed. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Mark Morgan Lloyd
Sven Barth wrote: On 11.02.2013 15:30, Mark Morgan Lloyd wrote: If anything, it is the fault of AppConfigDir for indicating a directory without raising an exception pointing out that it doesn't yet exist :-) And AppConfigDir/File is documented as not guaranteeing that the path

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Mark Morgan Lloyd
Giuliano Colla wrote: On 02/12/2013 10:02 AM, Mark Morgan Lloyd wrote: I admit that I was slightly trolling there, since Giuliano was complaining about exceptions that he wasn't seeing (because, it turns out, he wasn't catching them). You catch an exception if you can handle it. If a user

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-11 Thread Mark Morgan Lloyd
. In the second case, at the the end of a program run you save the current session's state. -- 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: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-11 Thread Mark Morgan Lloyd
Giuliano Colla wrote: Il 11/02/2013 12:40, Mark Morgan Lloyd ha scritto: Giuliano Colla wrote: However, what I've learned from this episode is that while attempting to save configuration data using TINIFile on program termination you should never use a try..finally construct, as it's

Re: [fpc-pascal] what happened to the contributed units listing?

2013-02-07 Thread Mark Morgan Lloyd
server (cachefly.net) it was by default blocked. Agreed. -- 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

Re: [fpc-pascal] x86 asm bswap

2013-02-06 Thread Mark Morgan Lloyd
was restricted to ten words the lines BEToN will rearrange the bytes in a Big-Endian number LEToN will rearrange the bytes in a Little-Endian number run through the unix ptx utility would index under Endian (amongst others). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

[fpc-pascal] UTF-8 decoding

2013-01-25 Thread Mark Morgan Lloyd
What does Utf8Decode() do if the input is incomplete because it's arriving slowly over a serial or telnet connection? By analogy with StrToInt() etc., is there be a TryUtf8Decode() which sets a flag if the parameter is well-formed? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

[fpc-pascal] Telnet subcommands revisited

2013-01-23 Thread Mark Morgan Lloyd
. At present the simplest option looks like a way to temporarily inflate the size of the stack in lControlStack, so that in the specific case where a subcommand is being accumulated it can hold more than three characters. Any ideas would be appreciated. -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] Favourite Pascal books

2013-01-22 Thread Mark Morgan Lloyd
they used to be. Arguably, if you find yourself with a pointer or an address at the application level then you're at fault: everything like that should be in custom objects with well-defined interfaces. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] make: -iVSPTPSOTO: Command not found

2013-01-15 Thread Mark Morgan Lloyd
to tell us what OS etc. you've got with any questions if you want sensible answers. -- 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] fpsystem output

2013-01-15 Thread Mark Morgan Lloyd
emulator were on Windows, but a particular case on any platform is where for some reason the TE or console has been set to raw (or similar) mode; there's commands to sort this out but often the safest way is to restart the session. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [fpc-pascal] make: -iVSPTPSOTO: Command not found

2013-01-15 Thread Mark Morgan Lloyd
Eric Kom wrote: On 15/01/2013 13:50, Mark Morgan Lloyd wrote: Eric Kom wrote: On 15/01/2013 12:48, Mark Morgan Lloyd wrote: Eric Kom wrote: Good day, After tried to build the fpcbuild.zip version, by executing the commad make build or make, I received the following error message: make

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Mark Morgan Lloyd
as an ordinary text file. -- 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] make: -iVSPTPSOTO: Command not found

2013-01-15 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: runnable fpc, you mean fpc-2.6.0 installed? export PP=/usr/local/bin/ppc386 make OPT='-O- -gl -Xs-' all Apologies for my poor threading here, but a message got lost in the spam trap. ftp://ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/%29. Thanks

Re: [fpc-pascal] make: -iVSPTPSOTO: Command not found

2013-01-15 Thread Mark Morgan Lloyd
Eric Kom wrote: On 15/01/2013 17:40, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: runnable fpc, you mean fpc-2.6.0 installed? export PP=/usr/local/bin/ppc386 make OPT='-O- -gl -Xs-' all Apologies for my poor threading here, but a message got lost in the spam trap. ftp

Re: [fpc-pascal] Re: Changing variable in conditional

2013-01-10 Thread Mark Morgan Lloyd
of internal operations (i.e. the final value of a is, at best, implementation-defined). However as I said: it's not Pascal :-) -- 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] Changing variable in conditional

2013-01-09 Thread Mark Morgan Lloyd
on this a few years ago. It's very easy to argue against multiple assignment. It's less easy to argue against implementing an equivalent of the C/C++ conditional. -- 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] Changing variable in conditional

2013-01-09 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On Wed, Jan 09, 2013 at 08:42:22AM +, Mark Morgan Lloyd wrote: But if you want an example of a very nasty bug caused by C/C++ multiple assignment, there was a well-documented attempt to slip a privilege escalation into the Linux kernel based on this a few years ago

Re: [fpc-pascal] Changing variable in conditional

2013-01-09 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On Wed, Jan 09, 2013 at 10:46:54AM +, Mark Morgan Lloyd wrote: I've got a vague recollection that since that episode the kernel maintainers have mandated a use of parentheses that helps the compiler pick up the distinction between an equality and an Assignment inside

Re: [fpc-pascal] Changing variable in conditional

2013-01-09 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: [a, b, c] := (d = e); would have been minimally acceptable. Did you really mean that or did you mean [a, b, c] := (d := e); ? :-) :-) I meant what I wrote: a comparison on the right producing a Boolean which

Re: [fpc-pascal] Changing variable in conditional

2013-01-08 Thread Mark Morgan Lloyd
didn't propagate a value like that I'm not sure a distinction would have to be made between (C-style) = and == or (Pascal-style) := and = -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

[fpc-pascal] Logging caller info

2013-01-02 Thread Mark Morgan Lloyd
semaphore can log what's caused a critical section to be entered and an assertion can report details on attempts to reenter? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

[fpc-pascal] Extending an enumeration

2012-12-28 Thread Mark Morgan Lloyd
classical Pascal so that I can store capabilities as a set? -- 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

Re: [fpc-pascal] Extending an enumeration

2012-12-28 Thread Mark Morgan Lloyd
. Yes, except that that loses type checking. -- 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] Extending an enumeration

2012-12-28 Thread Mark Morgan Lloyd
Ludo Brands wrote: On 28/12/2012 11:42, Mark Morgan Lloyd wrote: Is it possible to extend an enumeration, while preserving strong type checking? In other words, given existing code like typeTUpstreamServerCapabilitiesBase= (uscConnected, uscCanIssueGUID

Re: [fpc-pascal] Basically on the right track?

2012-12-28 Thread Mark Morgan Lloyd
seeing the code... Look back to 15:30 yesterday. -- 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] Extending an enumeration

2012-12-28 Thread Mark Morgan Lloyd
Ludo Brands wrote: On 28/12/2012 12:59, Ludo Brands wrote: On 28/12/2012 12:48, Mark Morgan Lloyd wrote: Ludo Brands wrote: type TAllServerCapabilitiesBase=(uscConnected, uscCanIssueGUID,lscConnected, lscCanIssueGUID, lscIsFirebird); TUpstreamServerCapabilitiesBase= uscConnected

Re: [fpc-pascal] Basically on the right track?

2012-12-27 Thread Mark Morgan Lloyd
microc...@zoho.com wrote: Ada support off Linux and Windows gets very expensive. But the market is far from dead. New standards have been approved even recently. Unfortunately, that's also true of COBOL and even of some earlier programming representations :-) -- Mark Morgan Lloyd markMLl

[fpc-pascal] Accessing low-level Firebird facilities

2012-12-22 Thread Mark Morgan Lloyd
it, otherwise I could post my existing fragments here if somebody was prepared to look at them and tell me what needs changing. -- 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: Accessing low-level Firebird facilities

2012-12-22 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 22-12-2012 19:00, Mark Morgan Lloyd wrote: Can somebody please lend me a hand making three sets of calls to (I think) ibase60dyn.pp please. I've written functions to make and poll asynchronous notifications for PostgreSQL, but I need the corresponding code

Re: [fpc-pascal] Accessing low-level Firebird facilities

2012-12-22 Thread Mark Morgan Lloyd
that Firebird appears to make extremely heavy going of this when compared with Postgres. -- 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] Searching for database libraries

2012-12-09 Thread Mark Morgan Lloyd
() is an incomplete solution since (a) at least on Windows it can't provide a path to libpq's prerequisites and (b) if built to be able to use SSL then libpq requires that it be available, even if it isn't being used for the session being established. -- Mark Morgan Lloyd markMLl .AT. telemetry.co

Re: [fpc-pascal] Searching for database libraries

2012-12-09 Thread Mark Morgan Lloyd
temporarily changing the current directory has the desired effect, and this can obviously be done with reference to the registry. -- 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] Searching for database libraries

2012-12-08 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Fri, 7 Dec 2012, Mark Morgan Lloyd wrote: When using something like InitialisePostgres3(), if the approximate location of the database library (.so or .dll) is known, what's the most effective way of finding the exact file? Is there a single routine that does

[fpc-pascal] Searching for database libraries

2012-12-07 Thread Mark Morgan Lloyd
efficient way of getting libpq.dll for Windows is to install the ODBC drivers, and they go into a directory typically named like C:\Program Files\psql\ODBC\\bin where is a version number. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] converting a TP/BP library to FPC

2012-12-06 Thread Mark Morgan Lloyd
for you. -- 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] converting a TP/BP library to FPC

2012-12-05 Thread Mark Morgan Lloyd
a multitasking OS you need to look for alternatives. -- 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] Change Endian of String types

2012-11-26 Thread Mark Morgan Lloyd
nik wrote: Hello, Is there a way to convert endian of a string (from little to big and vice versa) ? Change the endianness of a string with what representation? -- 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] bootstrapping from svn

2012-11-26 Thread Mark Morgan Lloyd
to go download it from somewhere else. What is your problem with starting at http://www.freepascal.org/download.var ? -- 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] Change Endian of String types

2012-11-26 Thread Mark Morgan Lloyd
. Converting WideString and UnicodeString is a fair question. Are you handling text files with multibyte encoding? -- 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] Free Pascal 2.6.2 rc1

2012-11-22 Thread Mark Morgan Lloyd
LacaK wrote: Mark Morgan Lloyd wrote / napĂ­sal(a): running on Linux x86 (32-bit): If Lazarus trunk is built with 2.6.0 the bug described at http://bugs.freepascal.org/view.php?id=22463 does not occur. If Lazarus trunk is built with 2.6.2 rc1 the bug is reproducible. Is somewhere

[fpc-pascal] BSD

2012-11-21 Thread Mark Morgan Lloyd
Somebody's suggesting we ought to be at least looking at BSD. What's the preferred variant from FPC/Lazarus's POV: OpenBSD, FreeBSD 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] BSD

2012-11-21 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Wed, 21 Nov 2012, Mark Morgan Lloyd wrote: Somebody's suggesting we ought to be at least looking at BSD. What's the preferred variant from FPC/Lazarus's POV: OpenBSD, FreeBSD etc.? I think Marco mainly uses FreeBSD. Thanks Michael. Minimal research also

Re: [fpc-pascal] BSD

2012-11-21 Thread Mark Morgan Lloyd
provides an API rather than attempting to emulate a PC's hardware. I might while I'm at it try a ReactOS guest and possibly Sanos: looks like the author of the latter has been tidying things up a bit so it's worth watching even if an FPC port is improbable. -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] BSD

2012-11-21 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 2012-11-21 12:27, Mark Morgan Lloyd wrote: Somebody's suggesting we ought to be at least looking at BSD. What's the preferred variant from FPC/Lazarus's POV: OpenBSD, FreeBSD etc.? I'm using FreeBSD 9.0 for some CGI apps of mine, and it works without hassle

Re: [fpc-pascal] Free Pascal 2.6.2 rc1

2012-11-21 Thread Mark Morgan Lloyd
to do with the compiler version. The error can be seen simply by reading the project into the Lazarus IDE, it's not necessary to compile/run. I've not managed to get anywhere tracking this down myself. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] fpc: -vm switch

2012-11-19 Thread Mark Morgan Lloyd
building from a snapshot or from subversion should be putting in. make NOGDB=1 OPT='-O- -gl -Xs- -vq' all Anything else? -- 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] array of const with cdecl procedure

2012-11-11 Thread Mark Morgan Lloyd
-64.org/documentation/abi.pdf, while the one for Win64 can be found at http://msdn.microsoft.com/en-us/library/ms235286.aspx I started trying to make a list of resources at http://wiki.lazarus.freepascal.org/Assembler_and_ABI_Resources but it's still largely just placeholders. -- Mark Morgan

Re: [fpc-pascal] Why opening a file for write fails in fpc 2.6?

2012-11-01 Thread Mark Morgan Lloyd
cruft that has been pulled in by recent implementations of GTK etc. -- 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: problems compiling FPC

2012-10-31 Thread Mark Morgan Lloyd
it now.. If we're trying to make it bloody idiot proof then the correct form is you are trying or you have tried. -- 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: problems compiling FPC

2012-10-30 Thread Mark Morgan Lloyd
Makefile) You try to build with 2.6.1. That could very easily be misread as You should try to build with 2.6.1, correct idiomatic English would be You are trying to build with 2.6.1., or to rub their nose in it You are trying to build with 2.6.1, which is not supported.. -- Mark Morgan Lloyd

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