On Sat, Apr 05, 2003 at 10:02:07AM +0800, Karim Forsthofer wrote:
> Hello
> I played around with the OpenGL unit, and I wrote some minimal OpenGL code to get a
> window:
> Here is the code:
>
> program glbasic;
>
> uses
> gl, glut;
>
> const
> width = 640;
> height= 480;
>
> procedure
Hello
I played around with the OpenGL unit, and I wrote some minimal OpenGL code to get a
window:
Here is the code:
program glbasic;
uses
gl, glut;
const
width = 640;
height= 480;
procedure drawthings;
begin
glClearColor(0.0, 0.0, 0.0, 0.0);
(*will add some more code*);
end;
begin
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
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
> 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
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
> >
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
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.
>
_