Click here to Skip to main content
15,888,802 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Need more break, hence more went.... Pin
Richard MacCutchan22-Apr-23 21:14
mveRichard MacCutchan22-Apr-23 21:14 
GeneralRe: Need more break, hence more went.... Pin
jhaga22-Apr-23 23:32
professionaljhaga22-Apr-23 23:32 
GeneralRe: Need more break, hence more went.... Pin
trønderen23-Apr-23 10:50
trønderen23-Apr-23 10:50 
GeneralRe: Need more break, hence more went.... Pin
trønderen23-Apr-23 10:44
trønderen23-Apr-23 10:44 
GeneralRe: Need more break, hence more went.... Pin
Single Step Debugger24-Apr-23 3:13
Single Step Debugger24-Apr-23 3:13 
GeneralRe: Need more break, hence more went.... Pin
jschell25-Apr-23 11:29
jschell25-Apr-23 11:29 
GeneralRe: Need more break, hence more went.... Pin
PIEBALDconsult27-Apr-23 9:31
mvePIEBALDconsult27-Apr-23 9:31 
GeneralRe: Need more break, hence more went.... Pin
trønderen27-Apr-23 11:00
trønderen27-Apr-23 11:00 
PIEBALDconsult wrote:
That is not an option on a VT screen.
What year was the most recent VT terminal released? Wikipedia describes the 1993 VT520 (i.e. 30 years ago), discontinued 10 years later (20 years ago). I doubt that there were later VT screens.

According to Wikipedia, the 1987 VT320 (and its successors) could display 132 chars/line, leaving room for 62 chars of end-of-line comments starting at col 70. In the age of non-graphic, character oriented screens, it was commonplace for editors to provide a command to move the window to the right by, say, 20 or 40 characters. For the first generation of character screens, the entire screen had to be redrawn. More 'recent' models provided escape sequences for moving the contents in a line buffer (in the terminal) to the right or left, so only the new part had to be transmitted. Editors of the time fine-tuned their output to the terminal model in use, to reduce data transmitted.
Similarly, some systems such as Oracle's PRO*C put a limit on line lengths.
They can't possibly have had a limit less than 132! I worked with editors having a 256 char limit, some time in the 1980s.

I googled 'Oracle PRO*C', and was sent to the documentation for version 12.1; it seems to be released in 2014. At that time, the 'Precompiler options' documentation for MAXLITERAL states

The maximum value of MAXLITERAL is compiler dependent. For example, some C compilers cannot handle string literals longer than 512 characters, so you would specify MAXLITERAL=512.

This is a (semi-)reasonable limit, but not one preventing you from using end-of-line comments! The limit may of course have been lower in earlier years (e.g. 256), but if a compiler couldn't process a source file that could be printed on
'any' line printer of the day, it must be classified as a toy compiler. (Besides, for EOL comments, the compiler sets no limits - the preprocessor strips off all comments, EOL or otherwise! So the limitation would be in the preprocessor, and I doubt very much that it had any limit affecting EOL comments.)

A note from modern times (5-6 years ago): The company I worked for was revising its C coding rules. The working group had suggested that all source files be limited to a maximum of 80 characters. At the meeting where this proposal was presented, my project leader immediately jumped up and declared that our project would have an exemption from this rule. The main reason: We had rules for generating names of #define constants that frequently lead to names exceeding 80 chars!

Personally, I would have preferred that no exemption were given, forcing us to revise those horrible name generating rules! That didn't happen; the entire 80-char limit was dropped, the name generating rules kept unchanged. The good thing is that I could continue writing EOL comments from col 70.
GeneralMessage Closed Pin
22-Apr-23 9:43
Member 1496877122-Apr-23 9:43 
AnswerRe: Computing dictionary ( for dummies) ? Pin
abmv22-Apr-23 17:48
professionalabmv22-Apr-23 17:48 
GeneralRe: Computing dictionary ( for dummies) ? Pin
Richard MacCutchan22-Apr-23 21:15
mveRichard MacCutchan22-Apr-23 21:15 
GeneralUmm, Has CP become Stackover flow? Pin
glennPattonWork322-Apr-23 9:40
professionalglennPattonWork322-Apr-23 9:40 
GeneralRe: Umm, Has CP become Stackover flow? Pin
PIEBALDconsult22-Apr-23 9:44
mvePIEBALDconsult22-Apr-23 9:44 
GeneralRe: Umm, Has CP become Stackover flow? Pin
Rick York22-Apr-23 9:57
mveRick York22-Apr-23 9:57 
GeneralRe: Umm, Has CP become Stackover flow? Pin
glennPattonWork322-Apr-23 10:54
professionalglennPattonWork322-Apr-23 10:54 
GeneralRe: Umm, Has CP become Stackover flow? Pin
David O'Neil22-Apr-23 13:42
professionalDavid O'Neil22-Apr-23 13:42 
GeneralRe: Umm, Has CP become Stackover flow? Pin
Richard MacCutchan22-Apr-23 21:21
mveRichard MacCutchan22-Apr-23 21:21 
GeneralRe: Umm, Has CP become Stackover flow? Pin
glennPattonWork323-Apr-23 0:16
professionalglennPattonWork323-Apr-23 0:16 
GeneralRe: Umm, Has CP become Stackover flow? Pin
Richard MacCutchan23-Apr-23 0:46
mveRichard MacCutchan23-Apr-23 0:46 
GeneralRe: Umm, Has CP become Stackover flow? Pin
glennPattonWork323-Apr-23 1:02
professionalglennPattonWork323-Apr-23 1:02 
GeneralRe: Umm, Has CP become Stackover flow? Pin
jschell25-Apr-23 11:31
jschell25-Apr-23 11:31 
GeneralRe: Umm, Has CP become Stackover flow? Pin
glennPattonWork326-Apr-23 0:40
professionalglennPattonWork326-Apr-23 0:40 
GeneralImproved AI for RTS games Pin
Calin Negru22-Apr-23 6:22
Calin Negru22-Apr-23 6:22 
GeneralRe: Improved AI for RTS games Pin
Gerry Schmitz22-Apr-23 10:47
mveGerry Schmitz22-Apr-23 10:47 
GeneralRe: Improved AI for RTS games Pin
Calin Negru23-Apr-23 4:31
Calin Negru23-Apr-23 4:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.