The Dink Network

Reply to Re: Maximum line length?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
June 18th 2024, 01:21 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
Oh, NOW YOU'VE DONE IT! 
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.