Re: [fpc-pascal]class variable

2003-04-04 Thread Anton Tichawa
Hello! > The idea of a class variable is strange to me. > Why not simply use a global variable ? In fact it would be a global variable, but one that is bound to a class, also in the sense of a namespace. Consider, as an example, a class variable that holds the count of instances. Something lik

Re: [fpc-pascal]class variable

2003-04-04 Thread Michael Van Canneyt
On Fri, 4 Apr 2003, Anton Tichawa wrote: > On Friday 04 April 2003 07:48, you wrote: > > > Hello! > > > > > >> Can any tell me if there's "Class Variable" in free pascal like in > > >> java? > > >> I mean, in java, you can declare a class memeber to be "static", all > > >> instance of this c

Re: [fpc-pascal]class variable

2003-04-04 Thread Peter Vreman
> When trying class methods, I found that the executable behaves strange: > Invoking a class method with > > . > > works fine. But, invoking the class method with > > . > > is accepted by the compiler, but results in an exception when > is > nil. Is that OK? Please try it with 1.0.7 or 1.1. There

Re: [fpc-pascal]class variable

2003-04-04 Thread Anton Tichawa
On Friday 04 April 2003 07:48, you wrote: > > Hello! > > > >> Can any tell me if there's "Class Variable" in free pascal like in > >> java? > >> I mean, in java, you can declare a class memeber to be "static", all > >> instance of this class share the same variable memory. Such a member can > >

Re: [fpc-pascal]class variable

2003-04-04 Thread Thomas Schatzl
Hi, > Great! > But does -St also contain the parameters of -S2/-Sd? > Or can we use them at > them at the same time? "fpc -St -Sd aaa.pp"? Yes you can. Regards, Thomas ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailma

Re: [fpc-pascal]class variable

2003-04-04 Thread milimeter
Great! But does -St also contain the parameters of -S2/-Sd? Or can we use them at them at the same time? "fpc -St -Sd aaa.pp"? > > Sorry that is wrong, static class members are supported, you need to > enable the static keyword using -St > > I don't know what you mean with class properties. > _

Re: [fpc-pascal]class variable

2003-04-03 Thread Peter Vreman
> Hello! > >> Can any tell me if there's "Class Variable" in free pascal like in >> java? >> I mean, in java, you can declare a class memeber to be "static", all >> instance of this class share the same variable memory. Such a member can >> be >> accessed through class name without any instanti

Re: [fpc-pascal]class variable

2003-04-03 Thread Anton Tichawa
Hello! > Can any tell me if there's "Class Variable" in free pascal like in java? > I mean, in java, you can declare a class memeber to be "static", all > instance of this class share the same variable memory. Such a member can be > accessed through class name without any instantiation. > Do

[fpc-pascal]class variable

2003-04-03 Thread milimeter
Hello, everybody Can any tell me if there's "Class Variable" in free pascal like in java? I mean, in java, you can declare a class memeber to be "static", all instance of this class share the same variable memory. Such a member can be accessed through class name without any instantiation.