Click here to Skip to main content
14,427,400 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: Speaking of C++ Pin
OriginalGriff25-Aug-18 6:13
communityengineerOriginalGriff25-Aug-18 6:13 
GeneralRe: Speaking of C++ Pin
Richard Andrew x6425-Aug-18 6:32
professionalRichard Andrew x6425-Aug-18 6:32 
GeneralRe: Speaking of C++ Pin
TheGreatAndPowerfulOz25-Aug-18 7:54
MemberTheGreatAndPowerfulOz25-Aug-18 7:54 
GeneralRe: Speaking of C++ Pin
Richard Andrew x6425-Aug-18 10:36
professionalRichard Andrew x6425-Aug-18 10:36 
GeneralRe: Speaking of C++ Pin
Member 798912227-Aug-18 6:27
MemberMember 798912227-Aug-18 6:27 
GeneralRe: Speaking of C++ Pin
Mark Kruger27-Aug-18 22:09
MemberMark Kruger27-Aug-18 22:09 
GeneralRe: Speaking of C++ Pin
CPallini25-Aug-18 6:27
mveCPallini25-Aug-18 6:27 
GeneralRe: Speaking of C++ Pin
Daniel Pfeffer25-Aug-18 11:10
professionalDaniel Pfeffer25-Aug-18 11:10 
The reasons are mostly historical. The cdecl convention allows for variable-length parameter lists (as required by the printf and scanf families, etc.). For all I know, it may also have been more efficient on the PDP-8 and -11, which were first used to run C.

In order to maintain binary compatibility with C libraries, many C++ compilers also adopted the cdecl convention as default.

Windows 1.0 was originally compiled to use the cdecl convention. Microsoft discovered that the executables would be smaller with the pascal convention (and, IIRC correctly, fit on one less diskette), so they switched.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.

GeneralRe: Speaking of C++ Pin
TheGreatAndPowerfulOz25-Aug-18 20:05
MemberTheGreatAndPowerfulOz25-Aug-18 20:05 
GeneralRe: Speaking of C++ Pin
Daniel Pfeffer25-Aug-18 20:41
professionalDaniel Pfeffer25-Aug-18 20:41 
GeneralRe: Speaking of C++ Pin
Richard Andrew x6426-Aug-18 5:12
professionalRichard Andrew x6426-Aug-18 5:12 
GeneralRe: Speaking of C++ Pin
Member 798912227-Aug-18 6:24
MemberMember 798912227-Aug-18 6:24 
GeneralRe: Speaking of C++ Pin
Daniel Pfeffer27-Aug-18 9:18
professionalDaniel Pfeffer27-Aug-18 9:18 
GeneralRe: Speaking of C++ Pin
Joe Woodbury25-Aug-18 12:16
professionalJoe Woodbury25-Aug-18 12:16 
GeneralRe: Speaking of C++ Pin
Munchies_Matt26-Aug-18 3:05
MemberMunchies_Matt26-Aug-18 3:05 
GeneralRe: Speaking of C++ Pin
ExcellentOrg26-Aug-18 21:44
MemberExcellentOrg26-Aug-18 21:44 
GeneralRe: Speaking of C++ Pin
englebart27-Aug-18 4:49
professionalenglebart27-Aug-18 4:49 
GeneralRe: Speaking of C++ Pin
Kirill Illenseer26-Aug-18 22:28
MemberKirill Illenseer26-Aug-18 22:28 
GeneralRe: Speaking of C++ Pin
Plamen Dragiyski27-Aug-18 19:42
professionalPlamen Dragiyski27-Aug-18 19:42 
GeneralGot to read those licenses Pin
jschell25-Aug-18 4:20
Memberjschell25-Aug-18 4:20 
GeneralRe: Got to read those licenses Pin
Sander Rossel25-Aug-18 5:18
professionalSander Rossel25-Aug-18 5:18 
GeneralRe: Got to read those licenses Pin
jschell25-Aug-18 6:03
Memberjschell25-Aug-18 6:03 
GeneralRe: Got to read those licenses Pin
Sander Rossel25-Aug-18 6:28
professionalSander Rossel25-Aug-18 6:28 
GeneralRe: Got to read those licenses Pin
Daniel Pfeffer25-Aug-18 11:29
professionalDaniel Pfeffer25-Aug-18 11:29 
GeneralRe: Got to read those licenses Pin
Sander Rossel26-Aug-18 0:07
professionalSander Rossel26-Aug-18 0:07 

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.