DMD 2.0 void[]

Deewiant deewiant.doesnotlike.spam at gmail.com
Tue Jun 19 00:40:43 PDT 2007


nobody wrote:
> Hello,
> 
> import std.file;
> import std.stdio;
> 
> int main() {
>         string str1 = "Zeile 1\n", str2 = "Zeile 2 \n";
>         void[] buf;
> 
>         buf ~= str1; buf ~= str2;
>         write("test_neu.txt",buf);
> 
>         return 0;
> }
> 
> How must i change the line 
> void[] buf  ?
> 

const(void)[] buf, because "string" is const(char)[].

-- 
Remove ".doesnotlike.spam" from the mail address.


More information about the Digitalmars-d-learn mailing list