Reply to Re: Maximum line length?
If you don't have an account, just leave the password field blank.
Perhaps it was both. This is an excerpt from BigTed's annotated Dinkc.txt:
*** BE CAREFUL WITH YOUR COMMENTS ***
Comment like this:
int &crap = 5;
//sets this to 5, duh
Not like this:
int &crap = 5; //sets this to 5, duh
This could cause a problem, some commands use 'does this char exist in this
string?' procedures. Don't do it. [I think he means his parser considers
a line at a time and searches the entire line for text. If so, why doesn't
it internally truncate the line at a "//"? That's what it's for!!
And anyway, Seth is not above violating this rule in his own code -- see
the entry for sp_nocontrol() in part 2.]
Having a brief look at the line parser suggests that a comment is only truly considered a comment if it's on its own line.
*** BE CAREFUL WITH YOUR COMMENTS ***
Comment like this:
int &crap = 5;
//sets this to 5, duh
Not like this:
int &crap = 5; //sets this to 5, duh
This could cause a problem, some commands use 'does this char exist in this
string?' procedures. Don't do it. [I think he means his parser considers
a line at a time and searches the entire line for text. If so, why doesn't
it internally truncate the line at a "//"? That's what it's for!!
And anyway, Seth is not above violating this rule in his own code -- see
the entry for sp_nocontrol() in part 2.]
Having a brief look at the line parser suggests that a comment is only truly considered a comment if it's on its own line.