www.digitalmars.com         C & C++   DMDScript  

D - char[] and ~

reply "Carlos Santander B." <carlos8294 msn.com> writes:
If I try to do this:

char [] s;
char c;
s = "...";
s ~= c ~ ' ';

I get:

Internal error: e2ir.c 1018

Honestly, I think that should be supported. I expected the compiler to first
concat c and ' ', and then concat it to s, but obviously it didn't.

-------------------------
Carlos Santander
http://carlos3.netfirms.com/


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 2003-01-21
Jan 27 2003
parent "Walter" <walter digitalmars.com> writes:
Looks like a bug. I'll take care of it. -Walter
Jan 28 2003