With revision 1319 Felix handles strings in the varray better:)
But there is some kind of limitations with bool:

#import <flx.flxh>

var a = varray[int](10lu);
a+=1;
a+=2;
print "len a = "; print$ len a; endl;
print "maxlen a = "; print$ maxlen a; endl;
print$ a.[0]; print ","; print a.[1ul]; endl;

var b = varray[string](10lu);
b+="One";
b+="Two";
print "len b = "; print$ len b; endl;
print "maxlen b = "; print$ maxlen b; endl;
print$ b.[0]; print ","; print b.[1ul]; endl;

var c = varray[bool](10lu);
c += false;

---------
SYSTEM FAILURE
[ogen]: Unknown kind of allocable type bool

Another thing I noticed...it's possible to add an int like this:
flx_varray.[3] = 4;    (as long as you stay within the borders)
but you can't add a string this way unless you have "filled" the
varray with += first.

\Klas
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to