Click here to Skip to main content
15,892,161 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: And we're back to the eighties again... Pin
jsc4213-May-20 3:11
professionaljsc4213-May-20 3:11 
GeneralRe: And we're back to the eighties again... Pin
littleGreenDude13-May-20 3:58
littleGreenDude13-May-20 3:58 
GeneralRe: And we're back to the eighties again... Pin
OriginalGriff13-May-20 4:14
mveOriginalGriff13-May-20 4:14 
GeneralRe: And we're back to the eighties again... Pin
kalberts13-May-20 4:48
kalberts13-May-20 4:48 
GeneralRe: And we're back to the eighties again... Pin
PIEBALDconsult13-May-20 4:57
mvePIEBALDconsult13-May-20 4:57 
GeneralRe: And we're back to the eighties again... Pin
OriginalGriff13-May-20 5:36
mveOriginalGriff13-May-20 5:36 
GeneralRe: And we're back to the eighties again... Pin
PIEBALDconsult13-May-20 11:54
mvePIEBALDconsult13-May-20 11:54 
GeneralRe: And we're back to the eighties again... Pin
kalberts13-May-20 6:09
kalberts13-May-20 6:09 
PIEBALDconsult wrote:
Besides, saying that the line terminator is \r\n is still imprecise; a line begins with \n and ends with \r .
Actually, the ISO standard 646, and its followers that include ISO 646 as a subset, defines CR and LF as completely orthogonal functions. LF advances the vertical position by one line, explicitly stating that the horizontal position is not affected. CR sets the horizontal position back to the start of the line, explictly stating that the vertical position is not affected.

So from an ISO 646 point of view, CR LF and LF CR are equally valid. Also valid is making two blank lines before the following text as [preceeding text]LF LF LF CR[following text].

What gets you to the beginning of a line is the CR. So it would be more correct to say that CR starts the line. If your file contains xxx<lf>yyy<lf>zzz, it would look like
C++
xxx
   yyy
      zzz
, by the ISO standard. Note that nothing is printed before the yyy and zzz, there are no spaces overwriting previous output, just a change of vertical position.

xxx[CR]yyy[CR]zzz would display xxx, yyy and zzz on top of each other. (Whether it appears as a real overprint or as a replacement depends on the physical presentation device.) Whether you call that one line or three lines on top of each other is a matter of definition.
GeneralRe: And we're back to the eighties again... Pin
dandy7213-May-20 6:53
dandy7213-May-20 6:53 
RantWe don't need no stinkin' common sense Pin
W Balboos, GHB13-May-20 1:51
W Balboos, GHB13-May-20 1:51 
GeneralRe: We don't need no stinkin' common sense Pin
Jörgen Andersson13-May-20 1:53
professionalJörgen Andersson13-May-20 1:53 
GeneralRe: We don't need no stinkin' common sense Pin
W Balboos, GHB13-May-20 1:56
W Balboos, GHB13-May-20 1:56 
GeneralRe: We don't need no stinkin' common sense Pin
Jörgen Andersson13-May-20 2:50
professionalJörgen Andersson13-May-20 2:50 
GeneralRe: We don't need no stinkin' common sense Pin
Rage13-May-20 2:49
professionalRage13-May-20 2:49 
GeneralRe: We don't need no stinkin' common sense Pin
OriginalGriff13-May-20 1:58
mveOriginalGriff13-May-20 1:58 
GeneralRe: We don't need no stinkin' common sense Pin
W Balboos, GHB13-May-20 2:06
W Balboos, GHB13-May-20 2:06 
GeneralRe: We don't need no stinkin' common sense Pin
musefan13-May-20 2:01
musefan13-May-20 2:01 
GeneralRe: We don't need no stinkin' common sense Pin
Jörgen Andersson13-May-20 2:52
professionalJörgen Andersson13-May-20 2:52 
GeneralRe: We don't need no stinkin' common sense Pin
W Balboos, GHB13-May-20 5:25
W Balboos, GHB13-May-20 5:25 
GeneralRe: We don't need no stinkin' common sense Pin
Jörgen Andersson13-May-20 7:49
professionalJörgen Andersson13-May-20 7:49 
GeneralRe: We don't need no stinkin' common sense Pin
W Balboos, GHB13-May-20 7:57
W Balboos, GHB13-May-20 7:57 
GeneralRe: We don't need no stinkin' common sense Pin
Jörgen Andersson13-May-20 9:45
professionalJörgen Andersson13-May-20 9:45 
GeneralRe: We don't need no stinkin' common sense Pin
W Balboos, GHB13-May-20 9:48
W Balboos, GHB13-May-20 9:48 
GeneralRe: We don't need no stinkin' common sense Pin
Daniel Pfeffer13-May-20 3:12
professionalDaniel Pfeffer13-May-20 3:12 
GeneralRe: We don't need no stinkin' common sense Pin
Richard MacCutchan13-May-20 4:00
mveRichard MacCutchan13-May-20 4:00 

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.