Click here to Skip to main content
15,891,009 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 5:13
mveOriginalGriff25-Aug-18 5:13 
GeneralRe: Speaking of C++ Pin
Richard Andrew x6425-Aug-18 5:32
professionalRichard Andrew x6425-Aug-18 5:32 
GeneralRe: Speaking of C++ Pin
TheGreatAndPowerfulOz25-Aug-18 6:54
TheGreatAndPowerfulOz25-Aug-18 6:54 
GeneralRe: Speaking of C++ Pin
Richard Andrew x6425-Aug-18 9:36
professionalRichard Andrew x6425-Aug-18 9:36 
GeneralRe: Speaking of C++ Pin
kalberts27-Aug-18 5:27
kalberts27-Aug-18 5:27 
GeneralRe: Speaking of C++ Pin
Mark Kruger27-Aug-18 21:09
Mark Kruger27-Aug-18 21:09 
GeneralRe: Speaking of C++ Pin
CPallini25-Aug-18 5:27
mveCPallini25-Aug-18 5:27 
GeneralRe: Speaking of C++ Pin
Daniel Pfeffer25-Aug-18 10:10
professionalDaniel Pfeffer25-Aug-18 10: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 19:05
TheGreatAndPowerfulOz25-Aug-18 19:05 
GeneralRe: Speaking of C++ Pin
Daniel Pfeffer25-Aug-18 19:41
professionalDaniel Pfeffer25-Aug-18 19:41 
GeneralRe: Speaking of C++ Pin
Richard Andrew x6426-Aug-18 4:12
professionalRichard Andrew x6426-Aug-18 4:12 
GeneralRe: Speaking of C++ Pin
kalberts27-Aug-18 5:24
kalberts27-Aug-18 5:24 
GeneralRe: Speaking of C++ Pin
Daniel Pfeffer27-Aug-18 8:18
professionalDaniel Pfeffer27-Aug-18 8:18 
GeneralRe: Speaking of C++ Pin
Joe Woodbury25-Aug-18 11:16
professionalJoe Woodbury25-Aug-18 11:16 
GeneralRe: Speaking of C++ Pin
Munchies_Matt26-Aug-18 2:05
Munchies_Matt26-Aug-18 2:05 
GeneralRe: Speaking of C++ Pin
ExcellentOrg26-Aug-18 20:44
ExcellentOrg26-Aug-18 20:44 
GeneralRe: Speaking of C++ Pin
englebart27-Aug-18 3:49
professionalenglebart27-Aug-18 3:49 
GeneralRe: Speaking of C++ Pin
Kirill Illenseer26-Aug-18 21:28
Kirill Illenseer26-Aug-18 21:28 
GeneralRe: Speaking of C++ Pin
Plamen Dragiyski27-Aug-18 18:42
professionalPlamen Dragiyski27-Aug-18 18:42 
GeneralGot to read those licenses Pin
jschell25-Aug-18 3:20
jschell25-Aug-18 3:20 
GeneralRe: Got to read those licenses Pin
Sander Rossel25-Aug-18 4:18
professionalSander Rossel25-Aug-18 4:18 
GeneralRe: Got to read those licenses Pin
jschell25-Aug-18 5:03
jschell25-Aug-18 5:03 
GeneralRe: Got to read those licenses Pin
Sander Rossel25-Aug-18 5:28
professionalSander Rossel25-Aug-18 5:28 
GeneralRe: Got to read those licenses Pin
Daniel Pfeffer25-Aug-18 10:29
professionalDaniel Pfeffer25-Aug-18 10:29 
GeneralRe: Got to read those licenses Pin
Sander Rossel25-Aug-18 23:07
professionalSander Rossel25-Aug-18 23: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.