Overkill
|
It's weird, Verge will compile your code that has the += operator used with strings. Then, when it actually EXECUTES the code, it says something about the string being corrupt.
I recommend:
1) Find out beforehand that they're using a += on a string, when they shouldn't.
2) Make += into a concatination operator! This would preferrable.
Posted on 2005-08-01 11:31:02
|
Overkill
|
It extends further than I first thought:
The invalid -= operator shares the same error, along with:
mystring = 'caca' * 8; // Although, you *could* make the multiplication operator be equivalent to strdup().
mystring = 'dude' / 2;
... And any other mathematical operator done to a string. It seems to not care at all until it actually executes the code, and the compiler isn't catching it.
Posted on 2005-08-03 09:47:04
|