Re: [fpc-pascal] Consumer producer unit (donation to fcl)

2011-03-14 Thread David Mears
On 03/01/2011 01:50 PM, Jorge Aldo G. de F. Junior wrote: i have implemented a small consumer x producer unit (ie: threads that produce or consume tobjects) it is thread safe (based around a tthreadsafequeue with signalling - the thread can sleep/wait arbitrary timeout time while its queue is em

Re: [fpc-pascal] destructor TDecompressionStream.Destroy question

2007-09-21 Thread David Mears
Michael Van Canneyt wrote: > On Thu, 20 Sep 2007, David Mears wrote: > > >> from fpc/packages/fcl-base/src/inc/zstream.pp >> >> I'm not really sure why this is in the destructor for tdecompressionstream. >> >> if FZRec.avail_in <>

[fpc-pascal] destructor TDecompressionStream.Destroy question

2007-09-20 Thread David Mears
from fpc/packages/fcl-base/src/inc/zstream.pp I'm not really sure why this is in the destructor for tdecompressionstream. if FZRec.avail_in <> 0 then Source.Seek(-FZRec.avail_in, soFromCurrent); my tdecompressionstream is fed by a tideadecryptstream - when tdecompressionstream is freed it

Re: [fpc-pascal] XTerm window resize [was: Re: hmm, freevision]

2007-08-30 Thread David Mears
> Probably this is of interrest for you: The terminal sends a SIGWINCH to > the running process when it is resized. The process then requests its > current size by an ioctl() TIOCGWINSZ to the stdout handle (0). > > You can test this in a simple shell window. Start two xterms (or which > terminal

Re: [fpc-pascal] hmm, freevision

2007-08-30 Thread David Mears
Graeme Geldenhuys wrote: I'm not 100% sure what he means. From what I gather it's when you resize a console window which is running FP, the Editor windows resizes accordingly. Basically just that, if you change the size the console window fp is in, the application sizes itself to fit the wi

[fpc-pascal] hmm, freevision

2007-08-29 Thread David Mears
Are there guides/documentation available for freevision? I actually may have the original manuals/media etc for turbo pascal 7- but if so, they're in a box in my parents house, so getting them is somewhat impractical. Information on the internet for either free vision or turbo vision seem somewha

[fpc-pascal] sparse files

2006-12-02 Thread David Mears
is there a generic multiplatform way to detect sparse files besides looking for run-ons of #0s? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] even linus torvalds prefer pascal over c

2006-12-02 Thread David Mears
From the first pascal program that I wrote in the late 80s to today, I've only used Goto once and that was because I was still learning the language - it was essentially a repeat loop and I replaced it in later versions. Pascal lets you do stupid things- it just makes you confirm that you do

[fpc-pascal] I think I must be the first person to ever use tmemds for anything serious...

2006-10-25 Thread David Mears
I think I've just found my 3rd bug in the unit. for me, it always says true when booleans are returned with .asBoolean, and as empty strings when returned with .asString with the latest svn compiler, is this also true of the release compiler? { This file is part of the Free Component Library

Re: [fpc-pascal] typed constants...

2006-10-23 Thread David Mears
Michael Van Canneyt wrote: On Mon, 23 Oct 2006, David Mears wrote: is this bit of syntactic weirdness a fpc element, or from delphi. I've largely been away from pascal since the early 90s, mostly only using it to write dos-y non-object-y utilities, for which it excels. typed cons

[fpc-pascal] typed constants...

2006-10-23 Thread David Mears
is this bit of syntactic weirdness a fpc element, or from delphi. I've largely been away from pascal since the early 90s, mostly only using it to write dos-y non-object-y utilities, for which it excels. typed constants seem to basically to be like the static keyword from c.. but not a var mo