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

2011-03-01 Thread Jorge Aldo G. de F. Junior
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 empty waiting for the producer) is it interesting for the fcl

Re: [fpc-pascal] Standard exceptions

2011-03-01 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > None of these exist in Pascal. You can get exceptions for range check errors > (ERangeError) in case you enable range checking and include the sysutils unit > in your uses clause, but in that case range checking will be performed for > all assignments

Re: [fpc-pascal] Fwd: Problem

2011-03-01 Thread Michael Van Canneyt
On Tue, 1 Mar 2011, Jonas Maebe wrote: To Rocco: the correct address to send messages for the list to is fpc-pascal@lists.freepascal.org Begin forwarded message: From: ROCCO DALTO Date: Tue 1 Mar 2011 01:13:08 GMT+01:00 To: fpc-pascal-boun...@lists.freepascal.org Subject: Probem! Thank

Re: [fpc-pascal] Standard exceptions

2011-03-01 Thread Michael Fuchs
Am 28.02.2011 18:28, schrieb Jonas Maebe: There are no generic equivalents to ArgumentException and ArgumentNullException (when asking such questions in the future, you may also want to include a reference to a web page that describes what they mean, it makes it easier for people to answer you).

[fpc-pascal] XHTML writer support in fcl-xml

2011-03-01 Thread leledumbo
Right now, fcl-xml only contains writer for THTMLDocument class from htmlelements unit. There's also another THTMLDocument class in dom_html unit which is used as a base class of TXHTMLDocument in xhtml unit. First, why the separation? Second, is there any plan to have writer support for TXHTMLDocu

[fpc-pascal] Fwd: Problem

2011-03-01 Thread Jonas Maebe
To Rocco: the correct address to send messages for the list to is fpc-pascal@lists.freepascal.org Begin forwarded message: From: ROCCO DALTO Date: Tue 1 Mar 2011 01:13:08 GMT+01:00 To: fpc-pascal-boun...@lists.freepascal.org Subject: Probem! Thank You for responding. Problem:Still Cannot

Re: [fpc-pascal] Standard exceptions

2011-03-01 Thread Vinzent Höfler
On Tue, 01 Mar 2011 12:38:27 +0100, Michael Fuchs wrote: I also miss a NotImplementedException (or ENotImplemented in FPC style), very handy for test driven development. :) Yeah. And type //-- @abstract(Obvious coding error.) Coder_Needs_Coffee = class (SysUtils.Exception); was ver

Re: [fpc-pascal] Standard exceptions

2011-03-01 Thread Jonas Maebe
On 28 Feb 2011, at 13:51, Michael Fuchs wrote: > while porting software from .NET to FreePascal I am looking for some > exceptions for recurrent errors. For example: > > ArgumentException, ArgumentNullException, ArgumentOutOfRangeException None of these exist in Pascal. You can get exceptions

Re: [fpc-pascal] Standard exceptions

2011-03-01 Thread Marcos Douglas
On Mon, Feb 28, 2011 at 9:51 AM, Michael Fuchs wrote: > Hello, > > while porting software from .NET to FreePascal I am looking for some > exceptions for recurrent errors. For example: > > ArgumentException, ArgumentNullException, ArgumentOutOfRangeException > > Is there a unit which defines those

Re: [fpc-pascal] Standard exceptions

2011-03-01 Thread Michael Fuchs
Am 28.02.2011 14:17, schrieb Sven Barth: As far as I'm aware of: There are none. There is ERangeError though (in SysUtils), but that's not an equivalent for ArgumentOutOfRangeException (I suppose that inherits from ArgumentException?). Yes,and all Argument..Exceptions have a property ParamName

Re: [fpc-pascal] Standard exceptions

2011-03-01 Thread Sven Barth
Am 28.02.2011 13:51, schrieb Michael Fuchs: Hello, while porting software from .NET to FreePascal I am looking for some exceptions for recurrent errors. For example: ArgumentException, ArgumentNullException, ArgumentOutOfRangeException Is there a unit which defines those exceptions? As far a

Re: [fpc-pascal] Standard exceptions

2011-03-01 Thread michael . vancanneyt
On Mon, 28 Feb 2011, Michael Fuchs wrote: Hello, while porting software from .NET to FreePascal I am looking for some exceptions for recurrent errors. For example: ArgumentException, ArgumentNullException, ArgumentOutOfRangeException Is there a unit which defines those exceptions? These