Re: [fpc-pascal]Using UInt32 {LongWords} as Indexes for Properties.

2004-04-06 Thread Jon D. Sawyer
To give a better picture of my problem: Type tQSDL_Surface = Class (SomeClass) Protected fFlags : UInt32; {LongWord} Function GetFlag(aBit: UInt32): Boolean; Function SetFlag(aBig: UInt32; aBool: Boolean); Public Constructor Create(); Des

Re: [fpc-pascal]Using UInt32 {LongWords} as Indexes for Properties.

2004-04-06 Thread Jon D. Sawyer
I appreciate the help but I'm not sure if you understand what it is I'm trying to do. SetFlag() and GetFlag() do binary operations on the flags controling an SDL Surface. Passing the BitMask to the GetFlag() will return weither or not the bit is on in the flags variable. Passing the BitMask and

[fpc-pascal]Using UInt32 {LongWords} as Indexes for Properties.

2004-04-06 Thread Jon D. Sawyer
Ran into a problem of where I'm not sure how the code will work once I'm finished and I'd rather not write all this if its not going to work: I want to provide access to Bit-Flags that control a class of mine: ig: Property SWSurface : Boolean Index SDL_SWSurface Read GetFlags Write SetFlags; I

Re: [fpc-pascal]fpcmake

2004-02-24 Thread Jon D. Sawyer
Thanks Micheal & Peter, I kinda figured that was the case. I think I'll just move it to a sub-directory like you suggested peter because I'd rather not have to re-edit the raw Makefile every time I generate it. Thanks again! This newsboard is part of what makes FPC so damn great! All of you guys

[fpc-pascal]fpcmake

2004-02-24 Thread Jon D. Sawyer
Is there a way to get FPC Make to enter its target DIRS before compiling the units in the current directory? I've got a unit that depends on another unit being compiled first that is in a sub-directory, even though I list the dirs first Make trys to compile the current dir first. Thx.. ^_^

Re: [fpc-pascal]RE: Defining Records on the fly:

2004-02-18 Thread Jon D. Sawyer
^_^ Thats how its working at the moment and I've known that FPC doesn't do that kinda definition on the fly. My real question was why not? On Wed, 2004-02-18 at 21:34, Adam Victor Nazareth Brandizzi wrote: > You can also define a function that returns the record you need: > > function NewMyRec(

Re: [fpc-pascal]My object function is overriding real function

2004-02-18 Thread Jon D. Sawyer
If the function you wish to call is apart of another unit you can call i.g.: UnitName.Close(sin); UnitName.Close(sout); ** That may work from within the same unit but I'm not certain. ** Free pascal is great about name spaces and allowing you to specify which function you wish to call. On

Re: [fpc-pascal]Defining Records on the fly:

2004-02-17 Thread Jon D. Sawyer
nifty feature.. but hey.. I was just wondering. On Mon, 2004-02-16 at 04:46, Shawn Tan Ser Ngiap wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Monday 16 February 2004 00:40, Jon D. Sawyer wrote: > > > Const ARec : tMyRec = (X:12; Y:25); > > >

[fpc-pascal]Defining Records on the fly:

2004-02-16 Thread Jon D. Sawyer
If I have this type: Type tMyRec = Record X, Y: Integer; End; and can do this: Const ARec : tMyRec = (X:12; Y:25); why can't I do this? var AnotherRec: tMyRec; begin AnotherRec := (X:12; Y:25); end. ** Feel free to smack me around. ___ fpc-pas