mB 5.0.3 Beta 4 LongWord don't create pointer.

Discuss about beta versions of mikroBasic
compiler.
Post Reply
Author
Message
MAN
Posts: 437
Joined: 11 Jan 2006 18:32
Location: Brasil

mB 5.0.3 Beta 4 LongWord don't create pointer.

#1 Post by MAN » 03 Sep 2007 13:40

When we declare longword as a pointer the compiler issues a error. Well, more exactly, 2 manner.

If we place the caret pointer, after the var, we get a compiler error 'identifier "=" was not declared'.
if we remove the caret the compiler don't report nothing but, don't compile too.

I tested with DWord and working fine. The problem was seen in the family P16 and P18.

ex. Code:

Code: Select all

Const ArrayTest as String[4][9] = ("ABCDEFGHI","bbbbbbb","ccccc","ddddddd")

Dim J as ^Word
Dim K as ^DWord
Dim L as ^Longword

main:
J^ = @ArrayTest
nop
K^  = @ArrayTest
nop
L^ = @ArrayTest
nop
End.
And here the first index of array stay affected if the next won't have the same length. But I only see in the P16 family.
Working with you, for you!
MAN

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

Re: mB 5.0.3 Beta 4 LongWord don't create pointer.

#2 Post by zristic » 03 Sep 2007 14:05

Thanks for the report.
We will check/fix it.

Post Reply

Return to “mikroBasic Beta testing”