Click here to Skip to main content
15,892,537 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: C is a better language than any language you care to name. Pin
Colborne_Greg1-Jun-14 15:34
Colborne_Greg1-Jun-14 15:34 
GeneralRe: C is a better language than any language you care to name. Pin
Kenneth Kasajian3-Jun-14 6:34
Kenneth Kasajian3-Jun-14 6:34 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult3-Jun-14 8:26
mvePIEBALDconsult3-Jun-14 8:26 
GeneralRe: C is a better language than any language you care to name. Pin
Kenneth Kasajian3-Jun-14 9:45
Kenneth Kasajian3-Jun-14 9:45 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult3-Jun-14 10:34
mvePIEBALDconsult3-Jun-14 10:34 
GeneralRe: C is a better language than any language you care to name. Pin
Kenneth Kasajian3-Jun-14 6:35
Kenneth Kasajian3-Jun-14 6:35 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult3-Jun-14 8:31
mvePIEBALDconsult3-Jun-14 8:31 
GeneralRe: C is a better language than any language you care to name. Pin
Kenneth Kasajian3-Jun-14 9:50
Kenneth Kasajian3-Jun-14 9:50 
Okay, although it's true that one can implement Pascal differently, you're right that it's limited to 64K (or 32K) in length for strings.

But I really don't think that's a good example of Pascal's inferiority over C. There's advantages to counted-strings, and I've worked in environments where actually simulated Pascal strings in C for efficiency (i.e. you can easily get to the length). COM BSTRs use a similar structure, but store 32-bit lengths.

And the reason I don't think it's a limitation is because if you needed a string that long, C's null-terminated string is hardly preferable. You likely need a different data-structure (rope, array of strings) to do whatever you're doing anyway. Or, more likely, it's that big, it's probably a memory buffer that you'd manage using address and count.

As a reminder, my initial post was not stating Pascal is better than C. It was to point out that many of today's languages are written in C.
ken@kasajian.com / www.kasajian.com

GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult3-Jun-14 10:49
mvePIEBALDconsult3-Jun-14 10:49 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg30-May-14 7:15
Colborne_Greg30-May-14 7:15 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult30-May-14 16:20
mvePIEBALDconsult30-May-14 16:20 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg31-May-14 15:15
Colborne_Greg31-May-14 15:15 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult31-May-14 17:25
mvePIEBALDconsult31-May-14 17:25 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg1-Jun-14 15:38
Colborne_Greg1-Jun-14 15:38 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult1-Jun-14 17:08
mvePIEBALDconsult1-Jun-14 17:08 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg1-Jun-14 20:46
Colborne_Greg1-Jun-14 20:46 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult2-Jun-14 3:18
mvePIEBALDconsult2-Jun-14 3:18 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg2-Jun-14 5:44
Colborne_Greg2-Jun-14 5:44 
GeneralRe: C is a better language than any language you care to name. Pin
Stefan_Lang2-Jun-14 2:59
Stefan_Lang2-Jun-14 2:59 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg2-Jun-14 5:41
Colborne_Greg2-Jun-14 5:41 
GeneralRe: C is a better language than any language you care to name. Pin
Stefan_Lang2-Jun-14 20:36
Stefan_Lang2-Jun-14 20:36 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg3-Jun-14 15:07
Colborne_Greg3-Jun-14 15:07 
GeneralRe: C is a better language than any language you care to name. Pin
Stefan_Lang3-Jun-14 20:29
Stefan_Lang3-Jun-14 20:29 
GeneralRe: C is a better language than any language you care to name. Pin
Charles Wolfe30-May-14 13:08
Charles Wolfe30-May-14 13:08 
GeneralRe: C is a better language than any language you care to name. Pin
jschell30-May-14 13:22
jschell30-May-14 13:22 

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.