Compiler bug.
Displaying 1-8 of 8 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Overkill

Say, you have the following function:

void AskBox(string text, string choices, int default_choice)
{

}

The compiler somehow lets the follow pass as 'valid' syntax:

if (AskBox('Do you like pie?'
'Yes\No'
1))
{
TextBox('You suck.');
}
else
{
TextBox('Splendid!');
}


Please really note the lack of commas. Just giving you a heads-up. And, apostrophes = quotes as always.

Posted on 2005-08-01 17:21:41

gannon

wow it doesn't even care if the if only contains a void funtion

Posted on 2005-08-01 17:38:03

Overkill

Whoops, that's supposed to be an int function in my example. But if you're saying you've just tested that Verge doesn't care that you pass conditionals a void... Well, there's two bugs!

But the bug I was point out was quoted string, newline, quoted string, newline, without it caring that there was no comma or operator after the quotes.

Posted on 2005-08-03 09:36:28

gannon

just tested it and does complain when you pass conditionals a void

Posted on 2005-08-03 12:19:21

Jesse

The following also works for some reason.

TextBox(T_GALFREY, 'Hey! I think he's copying my helmet style.
'What do you think?', '');

Posted on 2005-10-19 19:36:14

Jesse

So, turns out that commas are optional in function calls and declarations. If I fix this, sully doesn't compile in a bunch of places. I vote we just leave it.

Posted on 2005-10-22 16:40:37

mcgrue

Is it ever a cause of horrible fatality?

If so, I can easily fix the places where Sully is nonconformist...

It appears to be just a quirky thing though, with no real harm possible. Am I mistaken?

Posted on 2005-10-22 17:03:28

Jesse

I can't imagine any big problems with this; it's just a bit weird, that's all. I'm not worried about Sully in particular, I'm just guessing a fair amount of VC has these sprinkled throughout. No big deal either way from my point of view.

Posted on 2005-10-22 18:27:57


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