V3 bug
Displaying 1-1 of 1 total.
1
TomT64

When you compare two strings using == (see figure 1), the engine crashes with no log and no explanation. Since it took me 5-10 minutes to figure out what the problem was, imagine what would happen to a n00b.

Figure 1:

string fred='fred';

if (fred=='fred') //do something


Now don't inundate me with RTFM. I know the correct solution is to use strcmp(). However at the time I was not aware the V3 had implemented that, and thought that == was implemented for strings (there's only 3 data types after all).

Posted on 2005-02-14 02:20:42

Want to reply? login or register!


Displaying 1-1 of 1 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.