array of string

Beta Testing discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

array of string

#1 Post by jpc » 08 Dec 2008 10:45

found some strange behaviour after declaring a variable as array of string.
The compiler gets confused and reports strange errors. In order to test just put something like

Code: Select all

whatever : array[3] of string[5];
between variable-declarations.
Another remark : the type boolean is not available , at least non existent in help , if i use this type it compiles without problems though. The editor warns with red underlining of the unknown type

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

Re: array of string

#2 Post by yo2lio » 08 Dec 2008 11:41

jpc wrote:Another remark : the type boolean is not available , at least non existent in help , if i use this type it compiles without problems though. The editor warns with red underlining of the unknown type
Use byte instead of boolean , works OK.

BTW , Do you want to try my additional string library for AVR ?
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

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

#3 Post by jpc » 08 Dec 2008 12:17

Florin ,

i know boolean is just a byte , was just surprised to see it not documented and not recognized by the new compiler. Actually i think we must be very carefull about expectations with respect to bit-types , i already noticed that the actual implementation consumes many extra cycles( no real surprise)
With respect to this string issue , it is just a minor problem that certainly will be fixed. I do not use that many strings in my type of projects , others will certainly have better possibility to do some extensive testing with your library.

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

Re: array of string

#4 Post by zristic » 08 Dec 2008 15:35

jpc wrote:found some strange behaviour after declaring a variable as array of string.
The compiler gets confused and reports strange errors. In order to test just put something like

Code: Select all

whatever : array[3] of string[5];
Works fine here.
A small example which does not compile would be helpful.

Thenks.

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

Re: array of string

#5 Post by zristic » 08 Dec 2008 15:48

zristic wrote: A small example which does not compile would be helpful.
Ok, the error is reproduced. We are fixing it.
Thanks.

Post Reply

Return to “mikroPascal PRO for AVR Beta Testing”