type My_data_type = array[2] of byte;

Discuss about beta versions of mikroPascal compiler.
Post Reply
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

type My_data_type = array[2] of byte;

#1 Post by yo2lio » 25 Jun 2008 05:32

Hello,

In MP8.1 :

Following short program compile only one time.
When I try to recompile again, without restarting the compiler, I got this :
3:6 E-14 Identifier "My_data_type" has been already declared in test1.ppas


After restarting the compiler , I can compile again, one time ....

This problem appear only if type is declared array.

Code: Select all

unit test1;

type My_data_type = array[2] of byte;

var data : My_data_type;

implementation

end.

Code: Select all

program Test_mp8;
      
uses test1;

begin
   data[0] := 0;
end.
This problems was reported by daduggan, here :
http://www.mikroe.com/forum/viewtopic.php?t=15544

Thank you.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

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

Re: type My_data_type = array[2] of byte;

#2 Post by zristic » 25 Jun 2008 13:05

Thanks Florin.
The incoming command line version has this issue resolved.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#3 Post by yo2lio » 25 Jun 2008 13:33

Thank you !
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Post Reply

Return to “mikroPascal Beta testing”