Indexing by constants

Discuss about beta versions of mikroPascal compiler.
Post Reply
Author
Message
Dejan
Posts: 34
Joined: 23 Dec 2005 18:34
Location: Serbia

Indexing by constants

#1 Post by Dejan » 14 Aug 2006 09:33

Still doesn't work well.

const
FIVE = 5;
var
DDot: array[1..SCREEN_TXT_MAX] of Boolean;

DDot[FIVE] := TRUE; //DDot[5] = 255
DDot[FIVE] := TRUE; //DDot[4] = 255
DDot[FIVE] := TRUE; //DDot[3] = 255

Every use of FIVE as index decrements its value.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Indexing by constants

#2 Post by zristic » 14 Aug 2006 14:41

Ok, will be fixed. Thanks

Post Reply

Return to “mikroPascal Beta testing”