A method for returning two values from a function...
Displaying 21-24 of 24 total.
prev 1 2
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
zenogais

lol, it was no biggy, just pointing it out :P

Posted on 2004-07-21 09:34:23

Gayo

Well, I must admit, I do pass two small number in a single int in the LBS (the battle function returns both the turn the battle ended and a constant representing the battle outcome). But I don't anticipate having to do that more than once.

Posted on 2004-07-26 07:08:14

andy

Gak. Boost.Spirit is a hunk of crap. It's an amazing testament to what C++ can do, and I have nothing but respect for the author, but it's still a big hunk of crap.

Compiling a complex Spirit parser takens *eons*, and heaven help you if there's an error in your code someplace. A single error can span pages.

ANTLR is probably a better solution, though, really, VC is so small that a hand coded parser can be easily written in under a thousand lines. (which sounds like a lot, but it could be written in less time than it would take to learn either Spirit or ANTLR)

Posted on 2004-07-26 23:38:05

torin

FYI, the precompiler for my scripting system weighs in at roughly 1100 lines of Python. Some of that is non-essential stuff like generating proper indentation and stuff, though.

Posted on 2004-07-27 21:25:44


Displaying 21-24 of 24 total.
prev 1 2
 
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.