Re: [fpc-pascal] Type of file mode variable

2011-03-18 Thread Jürgen Hestermann
Jonas Maebe schrieb: I didn't find fminout and the other constants mentioned at this link. It describes the values you can assign to filemode and their effect. Does that mean, that only 3 values for filemode (0, 1 and 2) exist? Then it is quite confusing to group the filemode declaration and

Re: [fpc-pascal] Type of file mode variable

2011-03-18 Thread Michael Van Canneyt
On Fri, 18 Mar 2011, Jürgen Hestermann wrote: Jonas Maebe schrieb: I didn't find fminout and the other constants mentioned at this link. It describes the values you can assign to filemode and their effect. Does that mean, that only 3 values for filemode (0, 1 and 2) exist? Then it is

Re: [fpc-pascal] TDOMElement and multiple attributes

2011-03-18 Thread Mattias Gaertner
On Fri, 18 Mar 2011 15:42:13 +0100 Reimar Grabowski reimg...@web.de wrote: Hi all, I want to create a node with multiple attributes. It works by using SetAttribute multiple times but it looks like I cannot specify the order in which the attributes appear in the xml. The order of my

Re: [fpc-pascal] TDOMElement and multiple attributes

2011-03-18 Thread Reimar Grabowski
On Fri, 18 Mar 2011 16:02:10 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: Why do you need to order them? I don't need to, I just want to and the reason is simply aesthetics. So no big deal that it is not possible. Btw is there any comprehensible reason behind the order which

Re: [fpc-pascal] TDOMElement and multiple attributes

2011-03-18 Thread michael . vancanneyt
On Fri, 18 Mar 2011, Reimar Grabowski wrote: On Fri, 18 Mar 2011 16:02:10 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: Why do you need to order them? I don't need to, I just want to and the reason is simply aesthetics. So no big deal that it is not possible. Btw is there any

Re: [fpc-pascal] TDOMElement and multiple attributes

2011-03-18 Thread Reimar Grabowski
On Fri, 18 Mar 2011 17:08:49 +0100 (CET) michael.vancann...@wisa.be wrote: Probably determined by hashvalue or the AVL tree order. That makes sense, thank you for the info. R. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A:

Re: [fpc-pascal] TDOMElement and multiple attributes

2011-03-18 Thread Mattias Gaertner
On Fri, 18 Mar 2011 17:08:49 +0100 (CET) michael.vancann...@wisa.be wrote: On Fri, 18 Mar 2011, Reimar Grabowski wrote: On Fri, 18 Mar 2011 16:02:10 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: Why do you need to order them? I don't need to, I just want to and the

[fpc-pascal] double dispatch

2011-03-18 Thread Jorge Aldo G. de F. Junior
Can FPC deal with double-dispatch ? Say you have an object defined as : Type TMyObject = Class Public Procedure DoSomething(Const aObject : TObject); Virtual; End; TMyParameterObject = Class Public End; TMyOtherParameterObject = Class Public End; Can you do something like : Type

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

2011-03-18 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

[fpc-pascal] Converting code from C++ to FP....

2011-03-18 Thread Bo Berglund
I have a bunch of C++ files containing math processing functions, which I need to convert to pascal. But I have never programmed C++ (only ANSI C some 15 years ago) and I am stuck because of the syntax differences. It is all about the handling of data in arrays and I would be grateful for some