Thread overview
cat & catass operator
Sep 22, 2003
Nicolas Repiquet
Sep 22, 2003
DrakeX
Sep 23, 2003
Nicolas Repiquet
Sep 29, 2003
Walter
September 22, 2003
Hi folks,

Im trying to understand why this works :

char[] foo;
foo ~= "fo";
foo ~= 'o';

and why this dont :

char[] foo;
foo = foo ~ "fo";
foo = foo ~ 'o'; // <- error here

They are supposed to do the same thing aren't they ?


-- Nicolas Repiquet


September 22, 2003
does putting double quotes around the o help?  like

char[] foo;
foo = foo ~ "fo";
foo = foo ~ "o";


September 23, 2003
"DrakeX" <kb3ctd2@yahoo.com> a écrit dans le message news: bko2ar$gsv$1@digitaldaemon.com...
> does putting double quotes around the o help?  like
>
> char[] foo;
> foo = foo ~ "fo";
> foo = foo ~ "o";

Yes it works, but my message was not an "how to do it" message, I just wanna point out a strange behaviour. Thank you for your help anyway.

-- Nicolas Repiquet


September 29, 2003
"Nicolas Repiquet" <deadcow-remove-this@free.fr> wrote in message news:bkmgar$dnt$1@digitaldaemon.com...
> Hi folks,
>
> Im trying to understand why this works :
>
> char[] foo;
> foo ~= "fo";
> foo ~= 'o';
>
> and why this dont :
>
> char[] foo;
> foo = foo ~ "fo";
> foo = foo ~ 'o'; // <- error here
>
> They are supposed to do the same thing aren't they ?

It's supposed to do the same thing, it's a bug that it doesn't. -Walter