[fpc-pascal] TThread.Suspend

2014-01-30 Thread Mark Morgan Lloyd
case is a system emulating multiple processors. If any processor other than the first recognises certain conditions it is to stop running, pending notification from the first processor that (e.g.) an interrupt has been handled. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: First question: is Start an accurate replacement for Resume, Yes. or can it only be used to start a thread created in the suspended state? Yes. Both yes, because anything but that was never fully supported with

Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Both yes, because anything but that was never fully supported with Resume in the first place. Second question: now that Suspend is deprecated, what should a thread do if it wants to stop processing pending a subsequent

[fpc-pascal] Getting info on a procedure parameter

2014-02-11 Thread Mark Morgan Lloyd
If a method a.WriteBuff() is passed another method b.finish() as a parameter, can it access b before calling finish(), or would this require an explicit parameter? If yes, how? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those o

Re: [fpc-pascal] code speed and size on various platforms

2008-06-18 Thread Mark Morgan Lloyd
6 and SPARC, but in general am not being particularly thorough in removing symbols etc. Do you have a specific test project to use as a benchmark, i.e. that I can compile and report it takes X bytes on disc and ps/top reports Y/Z about it? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DO

[fpc-pascal] Procedure types

2008-12-19 Thread Mark Morgan Lloyd
compatible with AddressOf() as defined? Alternatively is there a type which is compatible with any procedure variable (i.e. like Modula-2's PROC, if my memory is correct), and can I overload AddressOf() to handle the specific case of a procedure passed as parameter while leaving it toleran

Re: [fpc-pascal] Procedure types

2008-12-20 Thread Mark Morgan Lloyd
;s applying it to a procedure variable as shown in my original message. -- 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 - f

Re: [fpc-pascal] Procedure types

2008-12-20 Thread Mark Morgan Lloyd
or = What I have found though is that using (* *) doesn't work- the definition has to be in {} However on the machine in question I'm still on version 2.2.0 of the compiler for various reasons. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the auth

Re: [fpc-pascal] Procedure types

2008-12-20 Thread Mark Morgan Lloyd
note. Assembling test Linking test 9 lines compiled, 0.7 sec 1 note(s) issued ->8- Apologies for my rather archaic programming style but I'm a refugee from Modula-2 and at one time I had this half-baked idea of writing code that could be easily machine-processed for both. Old h

[fpc-pascal] Forcing a text file to use a predefined handle

2008-12-20 Thread Mark Morgan Lloyd
7;); Rewrite(Error); TTextRec(Error).Handle:= GetStdHandle(STD_ERROR_HANDLE); Is there a correct and portable way to do this using FPC? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [fpc-pascal] Forcing a text file to use a predefined handle

2008-12-20 Thread Mark Morgan Lloyd
rappers to see if it works in Lazarus as well as it does in Delphi. Thanks for the help everybody, I'll go back to lurking quietly. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his emp

[fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread Mark Morgan Lloyd
of Delphi I'm using doesn't object, and I don't see why there should be a conflict between the class procedure and procedure parameter names. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagu

Re: [fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread Mark Morgan Lloyd
ted unit. I presume I'm correct in assuming {$mode delphi} operates strictly on the syntax of the current unit without affecting cross-unit operations. Are there cases where it can't be used? Specifically, can it be put in a Lazarus .lpr file where this is a transcript of a Delphi .dpr?

Re: [fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread Mark Morgan Lloyd
a Delphi .dpr? Yes. Thanks. I think I read that as the effect /is/ strictly local and it /can/ be applied to any unit. However in general I'm using it as an aid to porting existing code, not because I don't like the way FPC does things. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .D

[fpc-pascal] My favourite missing feature

2008-12-22 Thread Mark Morgan Lloyd
Merry Christmas and a happy New Year, everybody :-) -- 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] My favourite missing feature

2008-12-22 Thread Mark Morgan Lloyd
h do you? The issue is the convenience of being able to embed regexes and backrefs in the language rather than the availability of suitable units. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [fpc-pascal] My favourite missing feature

2008-12-22 Thread Mark Morgan Lloyd
Henry Vermaak wrote: 2008/12/22 Mark Morgan Lloyd : .>8 IF cells[2, dateTime] = /(\d\d)\/(\d\d)\/((\d\d)?\d\d)\s.*/i THEN BEGIN i thought for a moment you were trying to draw some nice ascii art :) "Leaning toothpick syndrome" :-) -- Mark Morgan Lloyd markMLl .AT. tele

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Mark Morgan Lloyd
etter example- all those \d are a bit offputting- but I wanted something from live code and wanted it to be non-trivial. -- 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] installing lazarus from debian backports - Broken package

2008-12-24 Thread Mark Morgan Lloyd
Csanyi Pal wrote: apt-cache show nothing about libglib1.2ldbl Google brings up lots of relevant discussion. I normally compile Lazarus from scratch under Debian and have never seen this problem. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Mark Morgan Lloyd
for coding error or for misinterpretation by a maintainer. -- 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.o

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Mark Morgan Lloyd
essed if assigned to a constant, although I've not tried doing this. -- 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] Tracking units and include files

2009-09-04 Thread Mark Morgan Lloyd
h describes the options when the app was built. In particular things like optimisation level which can affect code generation. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___

[fpc-pascal] Operator overloading

2009-09-19 Thread Mark Morgan Lloyd
^ could be overloaded it might make it easier to implement or at least to debug a local heap. -- 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] Operator overloading

2009-09-21 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 19 Sep 2009, at 22:21, Mark Morgan Lloyd wrote: Is there any way of overloading the ^ (dereference) operator for a user-defined type? No, it isn't. Shucks :-) I remember that JPI v1 had what they called "virtual pointers" which specified a dereferen

Re: [fpc-pascal] Hardware information: Linux and Windows

2010-01-21 Thread Mark Morgan Lloyd
r the other OSes that FPC supports. -- 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] Crosscompile FPC from Win32 to Linux

2010-06-07 Thread Mark Morgan Lloyd
Henry Vermaak wrote: Luckily, someone else has built mingw cross tools here: I was wondering. I abandoned Cygwin years ago- far too flaky. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colle

[fpc-pascal] Extending an enumeration

2010-07-18 Thread Mark Morgan Lloyd
If I have a class with a property Phase: TrrPhase where TrrPhase is an enumeration such as (rrQuiescent, rrInitialised), is there an elegant way of extending the enumeration and overriding the property type so that a derived class can use the new values? -- Mark Morgan Lloyd markMLl .AT

Re: [fpc-pascal] Extending an enumeration

2010-07-18 Thread Mark Morgan Lloyd
7;s hardly elegant. Which suggests that the best way is probably to have separate properties controlling the phase of execution (i.e. whether the code is properly initialised) and the state of the protocol or whatever being implemented. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [fpc-pascal] Module or Plugin or similar howto implement?

2010-07-20 Thread Mark Morgan Lloyd
nicely as an object. The weakness is the lack of embedded description of the parameters etc. of each entry point. -- 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] Extending an enumeration

2010-07-21 Thread Mark Morgan Lloyd
Thierry Coq wrote: On 18/07/2010 20:56, Mark Morgan Lloyd wrote: ... Yes, I was thinking that. However if the basic class was say a round-robin scheduler with phases rrQuiescent and rrInitialised and the descendant was say an HP comms protocol handler with additional phases hpReceivingPadding

Re: [fpc-pascal] Module or Plugin or similar howto implement?

2010-07-21 Thread Mark Morgan Lloyd
right" way of doing this would be to use CORBA or similar, but I don't know (a) how arduous setting up the IDL description would be and (b) whether that would invariably open sockets etc. even if it were intended to be a local interface. -- Mark Morgan Lloyd markMLl .AT. teleme

Re: [fpc-pascal] installing or using multiple versions of FPC on linux

2010-07-27 Thread Mark Morgan Lloyd
C version using the path it's been told to follow. -- 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] question about FPC heap and threading

2010-08-12 Thread Mark Morgan Lloyd
firmed as well. -- 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] question about FPC heap and threading

2010-08-13 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Thu, 12 Aug 2010, Mark Morgan Lloyd wrote: Seth Grover wrote: 1. The default FPC heap manager uses one heap per thread, right? I am basing this assumption off of things I have read in various threads on this and other mailing lists since around 2.2.x-ish

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-16 Thread Mark Morgan Lloyd
ends up having to compromise between on the one hand using a compatibility layer to improve portability and on the other using a server-specific library to be able to use all its facilities. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the au

[fpc-pascal] Apple development tools

2010-09-09 Thread Mark Morgan Lloyd
successful apps for the App Store." http://www.apple.com/pr/library/2010/09/09statement.html -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pasca

Re: [fpc-pascal] Help getting Lazarus app in Ubuntu to elevate to root and back again

2010-10-10 Thread Mark Morgan Lloyd
rules are for port usage (i.e. whether the user has to be root or using the root group is sufficient), but for a C program accessing a video capture device I use chown root:video v4lgrab chmod g+s v4lgrab That then allows the program to be run as part of an unprivileged CGI script. -- Mark

[fpc-pascal] Running FPC without extdebug

2010-10-14 Thread Mark Morgan Lloyd
Can somebody confirm that the -an option ("List node info in assembler file") is unavailable unless FPC is compiled with EXTDEBUG? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employer

Re: [fpc-pascal] Running FPC without extdebug

2010-10-14 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 14 Oct 2010, at 11:44, Mark Morgan Lloyd wrote: Can somebody confirm that the -an option ("List node info in assembler file") is unavailable unless FPC is compiled with EXTDEBUG? Correct. Thanks Jonas. I was using -an to look at some of the SPARC code ge

Re: [fpc-pascal] FPC for High Performance Computing (HPC) Components with Application API

2010-10-19 Thread Mark Morgan Lloyd
r else you want on top of that- but call it something like Preemptive Coroutines :-) -- 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 - f

Re: [fpc-pascal] Endian issues when porting FPC programs from x86 to other platforms

2010-11-02 Thread Mark Morgan Lloyd
k order" and a convenient hack is to use the endian-conversion functions associated with socket programming, i.e. HtoNL() 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] SIGTERM problem

2010-11-24 Thread Mark Morgan Lloyd
n example program (as short as possible) that demonstrates this? I've got 2.4.2 etc. running here and would be interested to try 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] Progress indication while linking

2010-12-28 Thread Mark Morgan Lloyd
just sitting there locked up? -- 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.freepasca

Re: [fpc-pascal] Progress indication while linking

2010-12-28 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 28 Dec 2010, at 11:04, Mark Morgan Lloyd wrote: Is it possible to get any sort of activity indication that confirms that the linker is actually doing something useful, rather than just sitting there locked up? No, there isn't. FPC currently does not show any o

Re: [fpc-pascal] Progress indication while linking

2010-12-28 Thread Mark Morgan Lloyd
Vincent Snijders wrote: 2010/12/28 Mark Morgan Lloyd : Jonas Maebe wrote: On 28 Dec 2010, at 11:04, Mark Morgan Lloyd wrote: Is it possible to get any sort of activity indication that confirms that the linker is actually doing something useful, rather than just sitting there locked up? I

Re: [fpc-pascal] Progress indication while linking

2010-12-28 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 28 Dec 2010, at 12:29, Mark Morgan Lloyd wrote: FPC works well enough to compile itself on Solaris (as discussed elsewhere) so I've got no reason to think that things are totally broken. However I've not got a number of tools that I rely heavily on when run

Re: [fpc-pascal] Progress indication while linking

2010-12-28 Thread Mark Morgan Lloyd
>0% CPU, so it's probably contributing to the overcommit. I haven't a clue what it's supposed to be doing in there... -- 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] Progress indication while linking

2010-12-28 Thread Mark Morgan Lloyd
but in the sort of extreme case that I've currently got with Solaris I don't know at what point that would peter out. -- 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] Progress indication while linking

2010-12-29 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Jonas Maebe wrote: The ld manual page lists some options you can use to reduce its memory usage: * --no-keep-memory (makes it re-read object symbol tables from time to time instead of keeping them in memory all the time) * --reduce-memory-overheads (small hash tables

Re: [fpc-pascal] Sin function

2010-12-29 Thread Mark Morgan Lloyd
e are lots of issues here, including the number of bits used internally by the floating point hardware and whether it knows Pi to this degree of precision. Also it might depend on optimisation level etc. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author&#

Re: [fpc-pascal] commutative operators

2010-12-30 Thread Mark Morgan Lloyd
on this please: in this context is the overloaded := effectively an implicit cast as well as an explicit operator? Is the availability of overloaded + and := operators necessary and sufficient for += to work correctly? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the

[fpc-pascal] Lifetime of a database (PostgreSQL) connection

2010-12-31 Thread Mark Morgan Lloyd
nnection object. My expectation is that these short-term handles should not mandate a name lookup, since the host name or address cannot be specified at this point. Am I being unreasonable? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] Lifetime of a database (PostgreSQL) connection

2011-01-01 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Fri, 31 Dec 2010, Mark Morgan Lloyd wrote: I've just taken our name server down for maintenance, and noted that a db-aware app I'd left running ground to a halt despite the fact that it was only activating queries, not establishing new (named) connecti

Re: [fpc-pascal] Lifetime of a database (PostgreSQL) connection

2011-01-01 Thread Mark Morgan Lloyd
in preference (or as a supplement) to the IP address. I'll report back if I find anything noteworthy. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-p

Re: [fpc-pascal] error compiling lazarus

2011-01-02 Thread Mark Morgan Lloyd
got around 512Mb total. -- 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/mailm

Re: [fpc-pascal] error compiling lazarus

2011-01-02 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: i compiled it with the svn version of fpc and of lazarus. still the same error. I've been having problems on one particular machine over the last few days which I suspect are down to inadequate RAM+swap- I think I've only got around 512Mb total. Thi

[fpc-pascal] FPC 2.x for old Solaris

2011-01-14 Thread Mark Morgan Lloyd
appear to be a fairly good match to what's in v8. -- 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.freepasca

Re: [fpc-pascal] Re: Building (linux) kernel modules using fpc (for fun)

2011-01-15 Thread Mark Morgan Lloyd
sts that he did the work in late '07. Since he's a Debian package maintainer etc. I'd expect him to have been using at least Etch i.e. kernel 2.6.18. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not t

Re: [fpc-pascal] FPC 2.x for old Solaris

2011-01-15 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 14 Jan 2011, at 15:02, Mark Morgan Lloyd wrote: Does anybody have an archived copy of FPC 2.x for SPARC Solaris v8 or older? The ones available by FTP (2.1.1 and 2.4.2) both appear to be for Solaris 10, i.e. expect newer libraries. I suspect that it was available or at

Re: [fpc-pascal] Re: Building kernel modules using fpc (for fun)

2011-01-15 Thread Mark Morgan Lloyd
m/helloworld.htm Indeed. Note that the original author suggested that running it in a UML (User Mode Linux) guest would be appropriate, I've used UML in the past and found it very useful (although with comparatively slow disc access, and limited to x86). -- Mark Morgan Lloyd markMLl .AT. tel

Re: [fpc-pascal] command for Linux for me to create fp ?

2011-01-16 Thread Mark Morgan Lloyd
x binary utilities (as, ar, ld, make), how you get those depends on what distro you're using. cd /fpcsrc make NOGDB=1 clean all make install then check that the ppc symlink in /usr/local is correct. There is a build FAQ for this which you will need when you start trying to do anyt

Re: [fpc-pascal] command for Linux for me to create fp ?

2011-01-16 Thread Mark Morgan Lloyd
Pew (piffle.the.cat) wrote: On 01/17/2011 03:59 AM, Mark Morgan Lloyd wrote: Peter, I do not claim to be an experienced builder and I usually work from a source release (currently 2.4.2) rather than from SVN so your mileage may vary. You will need the standard Linux binary utilities (as, ar

Re: [fpc-pascal] FPC 2.x for old Solaris

2011-01-16 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Thanks for that, noted for next time :-) The solution turned out to be fairly easy: the Solaris compiler uses dynamic libraries since some (libm) don't exist in static form on 10 and others (libmd5 etc.) don't exist in static form at all. Taking ppcsparc f

[fpc-pascal] Alternative execution environments

2011-01-18 Thread Mark Morgan Lloyd
ike Apache modules and browser plugins plus no doubt others. -- 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.free

[fpc-pascal] Getting (local) domain info from DNS

2011-01-21 Thread Mark Morgan Lloyd
by a physical network problem or by server failure. I can't speak for other types of connection, but TPQConnection.Connected:=FALSE will sit there indefinitely if the Ethernet plug is pulled out from the back of the computer. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opin

[fpc-pascal] Permuted index (KWIC) of function descriptions

2011-01-26 Thread Mark Morgan Lloyd
Check disregaring whitespace characters That's somewhat abbreviated so that it's not screwed too badly by wrap. -- 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] Permuted index (KWIC) of function descriptions

2011-01-26 Thread Mark Morgan Lloyd
://www.perlmonks.org/index.pl?node_id=27509 -- 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://lis

Re: [fpc-pascal] Permuted index (KWIC) of function descriptions

2011-01-26 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Wed, 26 Jan 2011, Mark Morgan Lloyd wrote: As a comparative beginner, I still find myself stumbling across RTL functions that I've previously hand-coded. Is there an easy way of generating a complete permuted index from the one-line descriptions o

Re: [fpc-pascal] Permuted index (KWIC) of function descriptions

2011-01-26 Thread Mark Morgan Lloyd
d a simple KWIC list, even if I had to manually exclude some possibilities. -- 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] Permuted index (KWIC) of function descriptions

2011-01-27 Thread Mark Morgan Lloyd
is is complete but I note http://sourceforge.net/projects/ioda/files/ioda/1.3/ioda-1.3-src.tar.bz2/download -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___

[fpc-pascal] SNMP and MIBs

2011-01-28 Thread Mark Morgan Lloyd
Noted previous mention of TSNMPSend etc., but has anybody ever looked at compiling an MIB into an FPC object for use with RTTI? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colle

Re: [fpc-pascal] SNMP and MIBs

2011-01-29 Thread Mark Morgan Lloyd
emotest intention of looking at... -- 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

Re: [fpc-pascal] SNMP and MIBs

2011-01-29 Thread Mark Morgan Lloyd
t I'm not sure it could be done at runtime I would go in the directly of IDispatch. COM object querying. What are the cross-platform implications of that? Presumably once an MIB description had been parsed it could be written out in any number of forms. -- Mark Morgan Lloyd m

Re: [fpc-pascal] SNMP and MIBs

2011-01-29 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: I can definitely see why it would be useful, but I'm not sure it could be done at runtime I would go in the directly of IDispatch. COM object querying. What are the cross-platform implications of that? Presumably

Re: [fpc-pascal] SNMP and MIBs

2011-01-29 Thread Mark Morgan Lloyd
Sven Barth wrote: On 29.01.2011 17:27, Mark Morgan Lloyd wrote: Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: I can definitely see why it would be useful, but I'm not sure it could be done at runtime I would go in the directly of IDispatch. COM object que

[fpc-pascal] Pre-initialising a TStringList

2011-02-06 Thread Mark Morgan Lloyd
Given one or more lines of text which are known at compilation time, and without the requirement to internationalize (these are, by RFC, US ASCII), what is the best way to get them into a TStringList? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author&#

Re: [fpc-pascal] Pre-initialising a TStringList

2011-02-06 Thread Mark Morgan Lloyd
Should I be looking at resources here and if so could they be kept in the main source file? This is for a highly-experimental SNMP MIB to Pascal translator that I'm tinkering with so- as an example- there will be a single class describing an HP Ethernet switch which may be instantiated but

Re: [fpc-pascal] Name of the programming language used in/with FPC

2011-02-08 Thread Mark Morgan Lloyd
ble in the language by default, i.e. with no command line options, embedded directives or "uses" statements. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _

[fpc-pascal] Classes and class methods

2011-02-09 Thread Mark Morgan Lloyd
n was available before instantiation. I'm assuming that the code that inspects the array has imported all units so is aware of the relevant class declarations, but I am still having problems with calling class methods and/or casting to a class (as distinct from an instance). -- Mark Mo

Re: [fpc-pascal] Classes and class methods

2011-02-09 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Is it possible to put a class (not an instance) in a variable or array element, and to use this to call a class method? I'm defining a hierarchy of classes and it would be convenient if it were possible to reg

Re: [fpc-pascal] Classes and class methods

2011-02-09 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Is it possible to put a class (not an instance) in a variable or array element, and to use this to call a class method? I'm defining a hierarchy of classes and it would be convenient

Re: [fpc-pascal] Classes and class methods

2011-02-09 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 09 Feb 2011, at 13:41, Mark Morgan Lloyd wrote: I'm doing something wrong- it works. I've got a sequence of classes, each with a Parent class procedure and Children() class function which reference a global array associated with each class (hardcoded name).

Re: [fpc-pascal] Classes and class methods

2011-02-10 Thread Mark Morgan Lloyd
Luiz Americo Pereira Camara wrote: On 9/2/2011 07:58, Mark Morgan Lloyd wrote: Is it possible to put a class (not an instance) in a variable or array element, and to use this to call a class method? I'm defining a hierarchy of classes and it would be convenient if it were possib

[fpc-pascal] String and dynamic array initialisation

2011-02-10 Thread Mark Morgan Lloyd
Are there any cases where a string variable will be allocated with anything other than zero length, or a dynamic array will be allocated with anything other than zero elements? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his empl

Re: [fpc-pascal] String and dynamic array initialisation

2011-02-10 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 10 Feb 2011, at 16:21, Mark Morgan Lloyd wrote: Are there any cases where a string variable will be allocated with anything other than zero length, In case it's a shortstring, the initial data could be anything. or a dynamic array will be allocated with anything

[fpc-pascal] fpdoc (fpc 2.4.2)

2011-02-11 Thread Mark Morgan Lloyd
ith class procedures/functions that are showing up in Lazarus, but not in fpdoc. What's the preferred format for these? -- 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] fpdoc (fpc 2.4.2)

2011-02-11 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Fri, 11 Feb 2011, Mark Morgan Lloyd wrote: I'm currently working on a translator from SNMP MIB files to Pascal, and on a whim decided to see how well they documented. Two questions if I may. i) fpdoc appears to lose the fact that a procedure or functi

[fpc-pascal] Fingerprinting operation of a program

2011-02-18 Thread Mark Morgan Lloyd
ce of procedure entry/exits, preferably identified by name rather than by address, using e.g. profiling hooks? -- 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] Fingerprinting operation of a program

2011-02-19 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 18 February 2011 18:19, Mark Morgan Lloyd wrote: I need to trace through a program, running on two different systems which might or might not have the same OS, in order to find out where it's failing. Before I start giving myself a gdb refresher course or man

Re: [fpc-pascal] Fingerprinting operation of a program

2011-02-19 Thread Mark Morgan Lloyd
Tomas Hajny wrote: On Sat, February 19, 2011 15:18, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 18 February 2011 18:19, Mark Morgan Lloyd wrote: I need to trace through a program, running on two different systems which might or might not have the same OS, in order to find out where it&#

Re: [fpc-pascal] Fingerprinting operation of a program

2011-02-20 Thread Mark Morgan Lloyd
Darius Blaszyk wrote: On Feb 19, 2011, at 3:18 PM, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 18 February 2011 18:19, Mark Morgan Lloyd wrote: I need to trace through a program, running on two different systems which might or might not have the same OS, in order to find out where it&#

[fpc-pascal] Read-only global references

2011-03-05 Thread Mark Morgan Lloyd
xt: TFormattedString read xInitText; The obvious problem here is that xInitText is a forward reference to an unexported variable. -- 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] Read-only global references

2011-03-05 Thread Mark Morgan Lloyd
Marcos Douglas wrote: On Sat, Mar 5, 2011 at 8:24 AM, Mark Morgan Lloyd wrote: Where a unit exports an instance of an object, what's best practice for making this read-only? I'm referring to the object reference itself here, not properties of the object. Where I've done this i

Re: [fpc-pascal] Read-only global references

2011-03-06 Thread Mark Morgan Lloyd
object, you could free the read-only object by doing o.Free which is identical to InitText.Free, i.e. you'd be using the declared destructor- which presumably could be hidden from calls outside the exporting unit. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: [fpc-pascal] Re: Read-only global references

2011-03-06 Thread Mark Morgan Lloyd
ntics where the function has persistent return value). Thanks, I'd reluctantly come to the same conclusion. "Read only" in that it doesn't expose a global variable which can be unintentionally written. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

[fpc-pascal] (Unix) serial port handling

2011-03-08 Thread Mark Morgan Lloyd
Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input data, output data or both? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not tho

Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Mark Morgan Lloyd
in synaser. Please check my previous messages. Thanks, 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-p

Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 08/03/11 10:30, Mark Morgan Lloyd wrote: Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input data, output data or both? fsync just makes sure all the in

Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 09/03/11 11:30, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 08/03/11 10:30, Mark Morgan Lloyd wrote: Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input

Re: [fpc-pascal] (Unix) serial port handling

2011-03-10 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 9 March 2011 15:54, wrote: On , Mark Morgan Lloyd wrote: I was using this to communicate with an HP instrument a few weeks ago, so have my own re-implementation of some of the stuff. I'll look at doing a patch, preparatory to seeing if I can hack a complementar

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