Changes before 1.0

Bruno Medeiros brunodomedeiros+spam at com.gmail
Wed Dec 6 03:58:13 PST 2006


Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jordan Miner schrieb am 2006-12-02:
> 
>> --1--
>> The following does not work, but it really should:
>> 	void print(char[][] strs) { }
>> 	print(["Matt", "Andrew"]);
>> Gives:
>> 	Error: cannot implicitly convert expression ("Andrew") of type char[6] to char[4]
> 
> current by-pass:
>  	print([cast(char[])"Matt", "Andrew"]);
> 
> Thomas
> 

Or just:
   print(["Matt"[], "Andrew"]);


-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list