Board index » delphi » Top 10 ways to get screwed by C
Frank de Groo
![]() Delphi Developer |
Tue, 05 Apr 2005 03:46:36 GMT
|
Frank de Groo
![]() Delphi Developer |
Tue, 05 Apr 2005 03:46:36 GMT
Top 10 ways to get screwed by C
http://www.andromeda.com/people/ddyer/topten.html
|
Oliver Townshen
![]() Delphi Developer |
Tue, 05 Apr 2005 17:54:20 GMT
Re:Top 10 ways to get screwed by C"Frank de Groot" <nos...@nospam.com> wrote in message Quote> http://www.andromeda.com/people/ddyer/topten.html Oliver |
Rod
![]() Delphi Developer |
Tue, 05 Apr 2005 19:08:08 GMT
Re:Top 10 ways to get screwed by CQuote> 2 and 8 (and maybe 12 and 13) apply to Delphi. 2. if (a := b) then c ?? and True < 5 will not compile either 8. if ... then ...; else ...; will not compile 12. Delphi warns for this (quite strictly) 13. Not really. Delphi doesn't have much of macro expansion :) |
Eyal Pos
![]() Delphi Developer |
Tue, 05 Apr 2005 19:09:11 GMT
Re:Top 10 ways to get screwed by CI agree about 8, but 2? -- Quote"Oliver Townshend" <oli...@zip.com.au> wrote in message Quote
|
Team
![]() Delphi Developer |
Tue, 05 Apr 2005 20:03:53 GMT
Re:Top 10 ways to get screwed by CIn article <3dafe...@newsgroups.borland.com>, Oliver Townshend says... Quote
are not just integers. -- Rudy Velthuis (TeamB) "Statistics are like a bikini. What they reveal is suggestive. |
Team
![]() Delphi Developer |
Wed, 06 Apr 2005 06:05:46 GMT
Re:Top 10 ways to get screwed by CIn article <3db08...@newsgroups.borland.com>, Oliver Townshend says... Quote> I'm sorry, I meant 1, 8, 12 and 13. -- Rudy Velthuis (TeamB) "Statistics are like a bikini. What they reveal is suggestive. |
Loren Pechte
![]() Delphi Developer |
Wed, 06 Apr 2005 06:25:02 GMT
Re:Top 10 ways to get screwed by COn Thu, 17 Oct 2002 21:46:36 +0200, "Frank de Groot" Quote<nos...@nospam.com> wrote: items there. Is the 10 perhaps in hex? |
Frank de Groo
![]() Delphi Developer |
Wed, 06 Apr 2005 09:21:41 GMT
Re:Top 10 ways to get screwed by CNo, he wanted to be fair and not include the last 6, as they were "common knowledge". Quote"Loren Pechtel" <lorenpech...@hotmail.com> wrote in message Quote
|
coyotebudd
![]() Delphi Developer |
Wed, 06 Apr 2005 10:20:30 GMT
Re:Top 10 ways to get screwed by C"Frank de Groot" <nos...@nospam.com> wrote: Quote>http://www.andromeda.com/people/ddyer/topten.html i "just came from" cppbuilder.nontechnical forum, Borland wants to propose the ISO comitee to add new (they exist in cppbuilder as non standards) i was surprise how much rejection the cpp guys yeah i mean "TMyProc = procedure of object" some of them just prefer to use templates, even microsoft get on the run with its c# what do you think DELPHI guys? coyotebuddy |
Alisdair Meredit
![]() Delphi Developer |
Thu, 07 Apr 2005 01:52:28 GMT
Re:Top 10 ways to get screwed by CQuotecoyotebuddy wrote: disagree with the proposal! However, some people have had run-ins with the Ansi committee before, and know that if your proposal can be achieved within the language that exists, then such a 'syntactic sugar' proposal is likely to be rejected. They went on to demonstrate to method pointers could be implemeneted today using some pretty ugly template programming. Most of us understand that when you need to go to such lengths to Oh, and I think the Delphi community should be mad as heck as borland -- |
Team
![]() Delphi Developer |
Thu, 07 Apr 2005 02:35:46 GMT
Re:Top 10 ways to get screwed by CIn article <3DB19BDC.367E2...@uk.renaultf1.com>, Alisdair Meredith says... Quote> Most of us understand that when you need to go to such lengths to additional library, the user will not care how complex the code in that library is, as long as it is easy to use. I'm pretty sure that the IEC/ISO/ANSI (or what is it, currently) "Statistics are like a bikini. What they reveal is suggestive. |
coyotebudd
![]() Delphi Developer |
Thu, 07 Apr 2005 04:42:18 GMT
Re:Top 10 ways to get screwed by C"Rudy Velthuis (TeamB)" <rvelth...@gmx.de> wrote: Quote>That depends. If this functionality simply comes in the form of an additional library, supports a functionality doesnt meen we could work with a better way to express the ideas. Take the gotos vs structured sentences (for, while) by example. because they allow to express the same funtionality to Quote> the user will not care how complex the code in that versus templates... Quote>I'm pretty sure that the IEC/ISO/ANSI (or what is it, currently) committee will know that too. for cpp to evolve, just as pascal (delphi) did... |
Arthuro DiBiAs
![]() Delphi Developer |
Fri, 08 Apr 2005 17:36:47 GMT
Re:Top 10 ways to get screwed by C"John Kaster (Borland)" <jkas...@borland.com> wrote in message news:3DB24FAB.46945ADB@borland.com... Quote> Alisdair Meredith wrote: (or at least allowed) to include it right? So what's the advantage to Borland? Having made it up? Being the first to implement it? Or will there be a pattent, so that Borland can ask royalties to everyone who uses it? |
Richard Bayarri Bartua
![]() Delphi Developer |
Thu, 14 Apr 2005 17:58:45 GMT
Re:Top 10 ways to get screwed by CQuote> If Borland doesn't want to use its C++ user base, it must come up with a C++ compiler, despite the fact that it is also the least compliant (much less so than Borland's offering)? IMO the biggest reason for C++ites not flocking to BCB is the fact that |
Richard Bayarri Bartua
![]() Delphi Developer |
Thu, 14 Apr 2005 17:31:56 GMT
Re:Top 10 ways to get screwed by CThe big thing that bugs me about all C-derived languages (including Java and C#) is the stupid "keep it like PDP-7 assembly code" switch statement, with its daft restriction of one value per case. Conditional branches are the most commonly used programming construct next to assignment, so why is it that C lovers have a mental block when it comes to something as simple as sub-ranges, especially when the C-style "if" statement is so clumsy, paranthesis-laden, long-winded, and error-prone? This type of dinosaur might have made sense in the days when compilers |