Re: [fpc-pascal] Mozilla XPCOM

2010-06-02 Thread Michael Van Canneyt
Hi, Are you cooperating with Phil on this ? When I was debugging it (linux 64 bit) , the whole application stopped on a floating point error somewhere in mozilla's Javascript engine; I never got around to debugging that. Have you seen this error too, or does the .GetServiceByContractID stop

[fpc-pascal] Mozilla XPCOM

2010-06-02 Thread José Mejuto
Hello FPC-Pascal, I'm trying to make the Gecko engine port compile in Ubuntu. It currently works in Win32 without problems, but in Ubuntu I had found a strange problem that could be related to fpc or not. Mozilla XPCOM is more or less based in COM interfaces, so in simple words, the code loads th

Re[4]: [fpc-pascal] array & record output/input

2010-06-02 Thread José Mejuto
Hello FPC-Pascal, Wednesday, June 2, 2010, 11:12:33 PM, you wrote: >> That's not a matter of support, V> maybe a poorly placed moan there... was getting annoyed with Indy/XML not V> doing what I wanted. V> i gave up trying to get XPath and XML Namespaces to work recently... whereas V> ive had XP

Re: Re[2]: [fpc-pascal] array & record output/input

2010-06-02 Thread Vannus
On 2 June 2010 18:56, José Mejuto wrote: > Hello FPC-Pascal, > > Wednesday, June 2, 2010, 2:56:29 PM, you wrote: > > V> ooh. php has 'print_r' for printing arrays/objects - an equivalent > V> ArrayToStr would be handy to have in Pascal. while pascal is my > favourite > V> language, I'm finding it

Re[2]: [fpc-pascal] array & record output/input

2010-06-02 Thread José Mejuto
Hello FPC-Pascal, Wednesday, June 2, 2010, 2:56:29 PM, you wrote: V> ooh. php has 'print_r' for printing arrays/objects - an equivalent V> ArrayToStr would be handy to have in Pascal. while pascal is my favourite V> language, I'm finding it poorly supported compared with php :( That's not a matt

Re: [fpc-pascal] timing again

2010-06-02 Thread Vinzent Höfler
Reimar Grabowski : > > If you want to get better than that, you need to get system specific, > > I'm afraid. > > That's not true. As Graeme already mentioned there is EpikTimer which is > a cross-plattform, high-resolution timer (which btw works very well for > realtime tasks). Well, that depends

Re: [fpc-pascal] PChar & AnsiString -- for-in loop enumerator

2010-06-02 Thread Bee Jay
On 2 Jun 2010, at 20:09, spir wrote: >> http://wiki.freepascal.org/for-in_loop > > Is this implemented? (unable to make it work -- the compiler refuses the > for...in notation) AFAIK, yes. At least, I know it's already in trunk since a while ago. Never use it myself though. -Bee- __

Re: [fpc-pascal] For-in support in the next FPC release

2010-06-02 Thread Graeme Geldenhuys
On 2 June 2010 15:08, Jonas Maebe wrote: > > Most features only get extensive real-world usage once they appear in a > released version. Fair enough. -- Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fr

Re: [fpc-pascal] For-in support in the next FPC release

2010-06-02 Thread Paul Ishenin
02.06.2010 20:57, Graeme Geldenhuys wrote: Just because it's in Trunk or Fixes branch, doesn't mean it's actually used and thus tested. From this message thread, not many even knew it was implemented. Hence my concern about it moving so quickly into Fixes branch. It will be used by Lazarus o

Re: [fpc-pascal] PChar & AnsiString

2010-06-02 Thread spir
On Wed, 2 Jun 2010 14:30:15 +0200 Graeme Geldenhuys wrote: > On 2 June 2010 14:16, Marco van de Voort wrote: > > > > Afaik it is merged into 2.4.1 already. > > > Did somebody actually test it other than Paul (that also implemented > it)? If so, that was a rather quick test for a big compiler c

Re: [fpc-pascal] PChar & AnsiString -- for-in loop enumerator

2010-06-02 Thread spir
On Wed, 2 Jun 2010 15:19:55 +0700 Bee Jay wrote: > On 1 Jun 2010, at 22:13, spir ☣ wrote: > > > (*) And to some more constructs in other languages, like foreach (*the* > > feature I miss in freepascal): > > foreach name in names do ... end; > > http://wiki.freepascal.org/for-in_loop Is this

Re: [fpc-pascal] For-in support in the next FPC release

2010-06-02 Thread Jonas Maebe
On 02 Jun 2010, at 14:57, Graeme Geldenhuys wrote: Op 2010-06-02 14:48, Jonas Maebe het geskryf: Yes (at least other people reported bugs about it on fpc-devel). If I remember correctly, those discussions were only while it was implemented. No real-world usage afterwards. Most features on

Re: [fpc-pascal] array & record output/input

2010-06-02 Thread Vannus
On 2 June 2010 11:34, spir wrote: > Hello, > > > Is there a (builtin, simple) way to output the content of an array or of a > record. Something like arrayToStr / recordToStr, that would return a normal > form similar to the literal notation used for intialisation? If no, is there > a way to write

Re: [fpc-pascal] For-in support in the next FPC release

2010-06-02 Thread Graeme Geldenhuys
Op 2010-06-02 14:48, Jonas Maebe het geskryf: > > Yes (at least other people reported bugs about it on fpc-devel). If I remember correctly, those discussions were only while it was implemented. No real-world usage afterwards. > There was a discussion about it on core. It was merged because > a)

[fpc-pascal] For-in support in the next FPC release (was: PChar & AnsiString)

2010-06-02 Thread Jonas Maebe
On 02 Jun 2010, at 14:30, Graeme Geldenhuys wrote: On 2 June 2010 14:16, Marco van de Voort wrote: Afaik it is merged into 2.4.1 already. Did somebody actually test it other than Paul (that also implemented it)? Yes (at least other people reported bugs about it on fpc-devel). If so, tha

Re: [fpc-pascal] PChar & AnsiString

2010-06-02 Thread Michael Van Canneyt
On Wed, 2 Jun 2010, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: http://wiki.freepascal.org/for-in_loop -Bee- Great! Thank you very much. (Is this feature mentionned in "official" docs? how could I miss it? The ref guide only mentions "The For..to/downto..

Re: [fpc-pascal] Why PIC as default for darwin?

2010-06-02 Thread Jonas Maebe
On 02 Jun 2010, at 14:30, CA Gorski wrote: What is the reason for having PIC enabled for darwin? It's also the default for GCC on Darwin. I have read that it slows down and is only useful for libs, if at all. It is in fact required for dynamic libraries on Darwin. Jonas __

Re: [fpc-pascal] PChar & AnsiString

2010-06-02 Thread Graeme Geldenhuys
On 2 June 2010 14:16, Marco van de Voort wrote: > > Afaik it is merged into 2.4.1 already. Did somebody actually test it other than Paul (that also implemented it)? If so, that was a rather quick test for a big compiler change. -- Regards, - Graeme - __

[fpc-pascal] Why PIC as default for darwin?

2010-06-02 Thread CA Gorski
What is the reason for having PIC enabled for darwin? I have read that it slows down and is only useful for libs, if at all. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] PChar & AnsiString

2010-06-02 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > >> > >> http://wiki.freepascal.org/for-in_loop > >> > >> -Bee- > > > > Great! Thank you very much. (Is this feature mentionned in "official" docs? > > how could I miss it? The ref guide only mentions "The For..to/downto..do > > statement", I gu

Re: [fpc-pascal] PChar & AnsiString

2010-06-02 Thread Michael Van Canneyt
On Wed, 2 Jun 2010, spir wrote: On Wed, 2 Jun 2010 15:19:55 +0700 Bee Jay wrote: On 1 Jun 2010, at 22:13, spir ☣ wrote: (*) And to some more constructs in other languages, like foreach (*the* feature I miss in freepascal): foreach name in names do ... end; http://wiki.freepascal.org/

Re: [fpc-pascal] PChar & AnsiString

2010-06-02 Thread Graeme Geldenhuys
On 2 June 2010 12:39, spir wrote: > > Great! Thank you very much. (Is this feature mentionned in "official" docs? > how could I miss it? The ref guide only mentions "The For..to/downto..do > statement", I guess.) > I don't think it's in FPC 2.4.1 either, only Trunk (2.5.1) - so no, the current

Re: [fpc-pascal] array & record output/input

2010-06-02 Thread Graeme Geldenhuys
Op 2010-06-02 12:34, spir het geskryf: > no, is there a way to write custom funcs for this purpose (meaning > access at runtime to types of items/fields). I constantly need such a > feature. writeln(recordTostr(aPosition)) // --> (x:1 ; y:2 ; z:3) If you used tiOPF based objects, then I could hav

Re: [fpc-pascal] PChar & AnsiString

2010-06-02 Thread spir
On Wed, 2 Jun 2010 15:19:55 +0700 Bee Jay wrote: > On 1 Jun 2010, at 22:13, spir ☣ wrote: > > > (*) And to some more constructs in other languages, like foreach (*the* > > feature I miss in freepascal): > > foreach name in names do ... end; > > http://wiki.freepascal.org/for-in_loop > > -Be

[fpc-pascal] array & record output/input

2010-06-02 Thread spir
Hello, Is there a (builtin, simple) way to output the content of an array or of a record. Something like arrayToStr / recordToStr, that would return a normal form similar to the literal notation used for intialisation? If no, is there a way to write custom funcs for this purpose (meaning acces

Re: [fpc-pascal] PChar & AnsiString

2010-06-02 Thread Bee Jay
On 1 Jun 2010, at 22:13, spir ☣ wrote: > (*) And to some more constructs in other languages, like foreach (*the* > feature I miss in freepascal): > foreach name in names do ... end; http://wiki.freepascal.org/for-in_loop -Bee- ___ fpc-pascal mailli