Strings and the += operator.
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
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


Displaying 1-2 of 2 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.