Re: [fpc-pascal] Object pascal a "Modern Language"

2006-03-04 Thread Felipe Monteiro de Carvalho
On 3/4/06, Matt Emson <[EMAIL PROTECTED]> wrote: > This will bring a tear to your eye then... Oh no, please, I absolutely don“t want to know about your life. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] platform independant wait

2006-03-04 Thread Marc Santhoff
Am Samstag, den 04.03.2006, 19:33 +0100 schrieb Vincent Snijders: > Marc Santhoff wrote: > > Hi, > > > > the subject tells what I'm searching for: > > > > How can i wait a definit amount of time in a platform independant way? > > > > I need to pause a while loop for 1 second. The program should

Re: [fpc-pascal] Object pascal a "Modern Language"

2006-03-04 Thread lanceboyle
On Mar 4, 2006, at 2:21 PM, Matt Emson wrote: Not so fresh, since it's the people that designed Delphi which designed C# and .NET, so actually you are doing more of the same. Nothing is fresh in IT. OP originated (so I understand, at least partially) with additions to Pascal for MacOS.

[fpc-pascal] Jump AfterConstruction method

2006-03-04 Thread Joao Morais
Hello, I have a constructor that, is some circumstances, need to return nil (is part of an OPF framework), after calling the inherited create method. This piece of code works fine with Delphi: Destroy; Self := nil; asm MOV [EBP - $09], EAX // Avoid calling AfterConstruction

Re: [fpc-pascal] Object pascal a "Modern Language"

2006-03-04 Thread Matt Emson
> Not so fresh, since it's the people that designed Delphi which designed > C# and .NET, so actually you are doing more of the same. Nothing is fresh in IT. OP originated (so I understand, at least partially) with additions to Pascal for MacOS. God only knows what will happen now that Borland is

Re: [fpc-pascal] Object pascal a "Modern Language"

2006-03-04 Thread Jonas Maebe
On 04 Mar 2006, at 21:12, Matt Emson wrote: Not wishing to make this OT, but... I'd like to ask everyone interested in continuing this topic to take it to the fpc-other list. Thanks, Jonas FPC mailing lists moderator. ___ fpc-pascal maillist

Re: [fpc-pascal] Object pascal a "Modern Language"

2006-03-04 Thread Michael Van Canneyt
On Sat, 4 Mar 2006, Matt Emson wrote: > This will bring a tear to your eye then... I have been a Delphi/Pascal > programmer for 10 years. I recently began a transit process to C#, and .Net > and I absolutely love it. It is a complete breath of fresh air. Not so fresh, since it's the people that

Re: [fpc-pascal] Object pascal a "Modern Language"

2006-03-04 Thread Matt Emson
Not wishing to make this OT, but... > Talk to them about targets that c# does not reach, like *BSD, Mac OS > X, Sparc, etc =) Um.. *cough* Portable.NET, *cough* Mono. Both will get you on to most of those platforms. Don't assume Microsoft needs all the answers. You can certainly compile under Wi

Re: [fpc-pascal] platform independant wait

2006-03-04 Thread Vincent Snijders
Marc Santhoff wrote: Hi, the subject tells what I'm searching for: How can i wait a definit amount of time in a platform independant way? I need to pause a while loop for 1 second. The program should run at least on FreeBSD and Windows. while NOT doStop do begin { wait a little }

Re: [fpc-pascal] platform independant wait

2006-03-04 Thread Jonas Maebe
On 04 Mar 2006, at 19:16, Marc Santhoff wrote: How can i wait a definit amount of time in a platform independant way? There's the delay() procedure in the crt unit. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fre

[fpc-pascal] platform independant wait

2006-03-04 Thread Marc Santhoff
Hi, the subject tells what I'm searching for: How can i wait a definit amount of time in a platform independant way? I need to pause a while loop for 1 second. The program should run at least on FreeBSD and Windows. while NOT doStop do begin { wait a little } doSomethi

[fpc-pascal] Re: [lazarus] Object pascal a "Modern Language"

2006-03-04 Thread Florian Klaempfl
Uwe Grauer wrote: > Matt Henley wrote: >> I belong to a mailing list for a defunt open source chemical process >> simulator (Sim42). Members of the list are now showing interest in >> restarting the effort. It was originally written in python which >> cause some speed issues. Several of the list

[fpc-pascal] Random numbers

2006-03-04 Thread Antal
It's not just that, but randseed is not a threadvar. This means that all your threads use the same randseed variable, so if two threads call "random" at the same time they will still get the same "random" number. Jonas And also generating a rand * getpid you can't really get good random number