PDA

View Full Version : Classes


Paul Fielder
09-16-2006, 12:12 PM
Hi, Since trying Version 1.01 from the Beta I am having problems with Classes:

#Class Deck
Private(Pointer2Deck$);

nProc Create
Local (i$);
Pointer2Deck$ = malloc(DeckMax);
for(i$, 0, (DeckMax -1))
setbyte(Pointer2Deck$ + i$, (i$+1));
// Debug("MemSet: " + (Pointer2Deck$ + i$) + " = " + (i$ +1));
end;
end; //Create
...


The error I get is:
** error ** (e:\pocket whist\class_deck.ppl) Can only declare a variable at func/proc/class main code level! at 'PRIVATE' (19,3)

I have looked into the help but my syntax seems the same as before Version one any light any one! %-6

kornalius
09-16-2006, 04:15 PM
Mmmm. Your code looks alright. I will look into it Monday. Rest assure it will be fixed for 1.02 which will be coming next week.

kornalius
09-18-2006, 07:08 PM
Send me your full source code at support@arianesoft.ca I cannot reproduce this bug here.</p>

Make sure your Private() is at the object definition level. I think this is your problem.</p>

kornalius
09-19-2006, 08:24 PM
This issue has just been fixed in v1.02.

Thanks.

Paul Fielder
09-21-2006, 03:08 PM
How long untill we get to see version 1.02, I'm iching to get going but held back by the issues with classes.

kornalius
09-21-2006, 09:49 PM
Sorry about that Paul. We hope to release either tomorrow or very early next week. Sorry about the delay, we would have liked to release earlier. It's coming soon.