Re: [fpc-pascal] Re: random numbers

2006-03-09 Thread Vinzent Hoefler
On Thursday 09 March 2006 17:47, Jonas Maebe wrote: > On 9 mrt 2006, at 18:38, Vincent Snijders wrote: > > > > Indeed, it isn't a real random number generator and in fact this is > > a good thing, otherwise you wouldn't be able to reproduce any > > behaviour with a Pseudo RNG. The fact it is Pseudo

Re: [fpc-pascal] N-Tier in FPC

2006-03-09 Thread Rodrigo Palhano
Maybe someday we'll have TDatasetProviver + TClientDataset :) Thanks for your quick answers Michael! -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free

Re: [fpc-pascal] N-Tier in FPC

2006-03-09 Thread Michael Van Canneyt
On Thu, 9 Mar 2006, Rodrigo Palhano wrote: > Is there any chance we have a TDatasetProvider like implementation > in FPC ? Midware contains such a thing. I would very much like to have TDatasetProvider and TClientDataset in FPC, but I have currently no time to implement it. There is a freewar

Re: [fpc-pascal] N-Tier in FPC

2006-03-09 Thread Rodrigo Palhano
Is there any chance we have a TDatasetProvider like implementation in FPC ? On Thu, 09 Mar 2006 17:16:40 -0300, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: On Thu, 9 Mar 2006, Rodrigo Palhano wrote: Is there any way (components, classes) i can develop 3-tier (n-tier...) application i

Re: [fpc-pascal] N-Tier in FPC

2006-03-09 Thread Michael Van Canneyt
On Thu, 9 Mar 2006, Rodrigo Palhano wrote: > Is there any way (components, classes) i can develop > 3-tier (n-tier...) application in FPC ?? ICS and probably also Midware compile with FPC. You can use that to create N-tier apps. Michael. ___ fpc-pa

[fpc-pascal] N-Tier in FPC

2006-03-09 Thread Rodrigo Palhano
Is there any way (components, classes) i can develop 3-tier (n-tier...) application in FPC ?? tks -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepas

Re: [fpc-pascal] Interfaces in FPC

2006-03-09 Thread Rodrigo Palhano
That's really cool, i am starting to love fpc... :) On Thu, 09 Mar 2006 16:37:18 -0300, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: On Thu, 9 Mar 2006, Jonas Maebe wrote: On 9 mrt 2006, at 19:58, Rodrigo Palhano wrote: > On Thu, 09 Mar 2006 15:53:34 -0300, Jonas Maebe > <[EMAIL PROT

Re: [fpc-pascal] Interfaces in FPC

2006-03-09 Thread Michael Van Canneyt
On Thu, 9 Mar 2006, Jonas Maebe wrote: > > On 9 mrt 2006, at 19:58, Rodrigo Palhano wrote: > > > On Thu, 09 Mar 2006 15:53:34 -0300, Jonas Maebe > > <[EMAIL PROTECTED]> wrote: > > > >> On 9 mrt 2006, at 19:34, Rodrigo Palhano wrote: > >> > >>> Are interfaces in FPC reference counted like in Delp

[fpc-pascal] cross-compiling ..

2006-03-09 Thread Burkhard Carstens
Hi, I finally managed to install fpc and lazarus from svn-source on a linux box (suse10.0 / i686). Now, as the first "hello world" app is running, I'd like to cross-compile it for windows and as many other platforms as possible. So I got fpcbuild/ from svn, started playing with the fpcbuild/in

Re: [fpc-pascal] Interfaces in FPC

2006-03-09 Thread Vincent Snijders
Jonas Maebe wrote: On 9 mrt 2006, at 19:58, Rodrigo Palhano wrote: On Thu, 09 Mar 2006 15:53:34 -0300, Jonas Maebe <[EMAIL PROTECTED]> wrote: On 9 mrt 2006, at 19:34, Rodrigo Palhano wrote: Are interfaces in FPC reference counted like in Delphi ? Yes. Why is that ? Because Delph

Re: [fpc-pascal] Interfaces in FPC

2006-03-09 Thread Jonas Maebe
On 9 mrt 2006, at 19:58, Rodrigo Palhano wrote: On Thu, 09 Mar 2006 15:53:34 -0300, Jonas Maebe <[EMAIL PROTECTED]> wrote: On 9 mrt 2006, at 19:34, Rodrigo Palhano wrote: Are interfaces in FPC reference counted like in Delphi ? Yes. Why is that ? Because Delphi also does it and beca

Re: [fpc-pascal] Interfaces in FPC

2006-03-09 Thread Rodrigo Palhano
Why is that ? Is there anyway i could deactivate this ref count feature? On Thu, 09 Mar 2006 15:53:34 -0300, Jonas Maebe <[EMAIL PROTECTED]> wrote: On 9 mrt 2006, at 19:34, Rodrigo Palhano wrote: Are interfaces in FPC reference counted like in Delphi ? Yes. Jonas _

Re: [fpc-pascal] Interfaces in FPC

2006-03-09 Thread Jonas Maebe
On 9 mrt 2006, at 19:34, Rodrigo Palhano wrote: Are interfaces in FPC reference counted like in Delphi ? Yes. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Interfaces in FPC

2006-03-09 Thread Rodrigo Palhano
Are interfaces in FPC reference counted like in Delphi ? -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: random numbers

2006-03-09 Thread Jonas Maebe
On 9 mrt 2006, at 18:38, Vincent Snijders wrote: As I noticed, when initialized the randseed with the same value, the whole rand values in the chain will be totally identical, which I'm afraid is rather far from what we might expect from a "real" random number generator! Indeed, it isn't

Re: [fpc-pascal] Re: random numbers

2006-03-09 Thread Vincent Snijders
Antal wrote: As I noticed, when initialized the randseed with the same value, the whole rand values in the chain will be totally identical, which I'm afraid is rather far from what we might expect from a "real" random number generator! Indeed, it isn't a real random number generator and in fa

[fpc-pascal] Re: random numbers

2006-03-09 Thread Antal
There is nothing strange about this. Randomize initialises randseed based on the system clock value expressed in seconds. So if you run it twice in the same second, you will get the same number. You are not generating a series of random numbers based on the Mersenne Twister here, because you only

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread Vinzent Hoefler
On Thursday 09 March 2006 17:02, L505 wrote: > > > Isn't this exactly what array of const is for? It allows you to > > > use anywhere from 1 to unlimited parameters. > > > > Yes. Still, it's only one argument. You can't just suddenly pass > > two "array of const", can you? > > Okay but why would yo

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread L505
I don't see what all the arguments are about the C language being able to rewrite writeln (printf, etc.) but in Pascal not. I don't see any limits with what Pascal can do - you could rewrite writeln procedure and other low level calls with several options - textrec tricks, or this array of const t

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread L505
> > Isn't this exactly what array of const is for? It allows you to use > > anywhere from 1 to unlimited parameters. > > Yes. Still, it's only one argument. You can't just suddenly pass two > "array of const", can you? Okay but why would you need that (humor me). > > > Vin"Nitpicker"zent. >

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread Vinzent Hoefler
On Thursday 09 March 2006 16:23, L505 wrote: > Well you are nitpicking my email :-). Maybe. I'm known for doing that sometimes. I also even tend to write "SizeOf (byte)" instead of "1". > I'm not confused at all - the docs are. Are they? "My" Free Pascal: Reference Guide states: |10.3.6 Arr

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread Michael Van Canneyt
On Thu, 9 Mar 2006, L505 wrote: I have also read people stating things like this before: "you can use array of const but you can't make functions like writeln because writeln accepts multiple types". Usually the statement is about different _numbers_ of arguments, not different types. Writi

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread L505
- Original Message - From: "Michael Van Canneyt" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Thursday, March 09, 2006 9:36 AM Subject: Re: [fpc-pascal] Variable arguments, different types? > > > On Thu, 9 Mar 2006, L505 wrote: > > > > > > >> > >>> I have also read peopl

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread Michael Van Canneyt
On Thu, 9 Mar 2006, L505 wrote: I have also read people stating things like this before: "you can use array of const but you can't make functions like writeln because writeln accepts multiple types". Usually the statement is about different _numbers_ of arguments, not different types.

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread L505
> > > I have also read people stating things like this before: > > > > "you can use array of const but you can't make functions like writeln > > because writeln accepts multiple types". > > Usually the statement is about different _numbers_ of arguments, not > different types. Writing subroutine

[fpc-pascal] Announcement – Open Source Proces s Simulation (OpSim)

2006-03-09 Thread Samuel Cartaxo
I would like to announce the startup of the project "OpSim" (the Open source Process Simulator).   This project regards an open source based Chemical Engineering Process Simulator with a user friendly (drag-drop) graphical user interface (GUI) and an underlying high performance simulation engine.

Re: [fpc-pascal] Variable arguments, different types?

2006-03-09 Thread Vinzent Hoefler
On Thursday 09 March 2006 04:31, L505 wrote: > I have also read people stating things like this before: > > "you can use array of const but you can't make functions like writeln > because writeln accepts multiple types". Usually the statement is about different _numbers_ of arguments, not differ