Re: [c-prog] Re: Exception handling

2009-01-01 Thread Rick
At 12/31/2008 01:16 PM, you wrote: --- In c-prog@yahoogroups.com, kocmotex kocmo...@... wrote: --- In c-prog@yahoogroups.com, Pedro Izecksohn izecksohn@ wrote: --- kocmotex wrote: ... the inability of academia to shift gears. After all, if some of the other free C compilers were

[c-prog] Re: Exception handling

2008-12-31 Thread kocmotex
--- In c-prog@yahoogroups.com, Pedro Izecksohn izecks...@... wrote: --- kocmotex wrote: ... the inability of academia to shift gears. After all, if some of the other free C compilers were taught, such as Pelles C, lcc-win32, Dev-C, etc, the academia might have to re-write some of their

[c-prog] Re: Exception handling

2008-12-31 Thread kocmotex
--- In c-prog@yahoogroups.com, kocmotex kocmo...@... wrote: --- In c-prog@yahoogroups.com, Pedro Izecksohn izecksohn@ wrote: --- kocmotex wrote: ... the inability of academia to shift gears. After all, if some of the other free C compilers were taught, such as Pelles C, lcc-win32,

Re: [c-prog] Re: Exception handling

2008-12-09 Thread Pedro Izecksohn
--- kocmotex wrote: ... the inability of academia to shift gears. After all, if some of the other free C compilers were taught, such as Pelles C, lcc-win32, Dev-C, etc, the academia might have to re-write some of their arcane quiries, such as triple pre-or-postfix notation, viz. +++y, c---,

[c-prog] Re: Exception handling

2008-11-25 Thread Saurabh Jain
--- In c-prog@yahoogroups.com, crystalcat_75 [EMAIL PROTECTED] Following program is showing an error while running in turbo c : undefined symbol for try statement missing after try . snip Upgrade your compiler please! Regards, Saurabh

Re: [c-prog] Re: Exception handling, resource cleanup strategies

2007-02-25 Thread John Gunnarsson
Okay, I have studied the RAII ideome, as a realworld test I made a small application where I have wrapped a c api handle for a directory inside a raii class. Could you provide some weedback on the code below, have I understood RAII correctly? If something else look weired in my code please tell me

[c-prog] Re: Exception handling, resource cleanup strategies

2007-02-11 Thread Milan Babuskov
--- John Gunnarsson wrote: As you can see the cleanup code is duplicated 3 times (not very DRY) If I would have implemented the same scenario in c# the cleanupcode would have been placed in a finally clause only once, and would be executed wither an exception occured or not. Since I'm quite