Strings in structs.
Displaying 1-10 of 10 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Overkill

So... When are the struct string errors to be fixed? I mean, I guess I could make a two-element string array just to suddenly make it work, like so:


struct test_type
{
string test_string[2];
};

test_type test_object;


...but I'd prefer if I could have strings in structs without them being arrays. So are you going to fix this problem anywhere in the near future?

Posted on 2004-07-14 04:42:29

rpgking

Wait...what's wrong with strings in structs?

Posted on 2004-07-14 05:31:28

Omni

Apparently you can't have a single string. It has to be a string array, or Verge crashes on compile.

Or at least, this WAS the case...

Posted on 2004-07-14 05:33:04

Gayo

No, it's even more complicated than that. Sometimes you can, sometimes you can't. it's a large, bizarre bug.

Posted on 2004-07-14 06:09:32

RageCage

I've never had a problem with strings in structs...

Posted on 2004-07-14 06:56:45 (last edited on 2004-07-14 06:58:03)

rpgking

I have a few structs with single strings in them, and they work fine.

Posted on 2004-07-15 00:17:34

Overkill

Hmm... Maybe it depends on the amount of single string variables you have in one struct? I had only one string in a struct of mine, and about 6 ints also. Verge would crash every time. That was, until I made my string variable a string array.

I'm just wondering why it did this, or if it's possible at all to be fixed.

Posted on 2004-07-15 00:29:44

vecna

A test case that fails would go a long way towards a fix.

Posted on 2004-07-15 05:11:00

Gayo

I'd love to send you some, but the trouble is that if I include a single struct defined in the way that breaks it, it works. The problem seems to be related to either the other structs I've defined or the arrays of structs, so I'd have to send you a moderately large piece of code. I'm happy to do so if you want, though.

Posted on 2004-07-15 22:00:00

vecna

Simpler code is always better, but a large hunk of code that demonstrates the problem is better than not being able to duplicate the problem at all. Send away. I'll jump on irc later, or you can email it to me.

Posted on 2004-07-16 18:20:47


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