Thread overview |
---|
January 08, 2005 Nested Functions | ||||
---|---|---|---|---|
| ||||
DmC obvoiusly does not like nested functions. Is this correct or did I miss out something? |
January 08, 2005 Re: Nested Functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to MarsRook | "MarsRook" <MarsRook_member@pathlink.com> wrote in message news:cromug$1ptg$1@digitaldaemon.com... > DmC obvoiusly does not like nested functions. Is this correct or did I miss out > something? Nested functions are not legal in C or C++. They are legal in D, however, and work with the DMD D compiler. |
January 09, 2005 Re: Nested Functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | In article <crp7uj$2auv$1@digitaldaemon.com>, Walter says... > > >"MarsRook" <MarsRook_member@pathlink.com> wrote in message news:cromug$1ptg$1@digitaldaemon.com... >> DmC obvoiusly does not like nested functions. Is this correct or did I >miss out >> something? > >Nested functions are not legal in C or C++. They are legal in D, however, and work with the DMD D compiler. > > Thanks for your reply. My mistake, I had the perception that nested functions were part of C99, but it appears that they are just a GNU-C extension - a very useful one though. I guess I'll have to stick with GNU and keep thinking about writing more portable stuff in future. Otherwise, I have tried your D compiler a couple of times now and it seems to mature by the month. Congratulations to this development! |
January 13, 2005 Re: Nested Functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to MarsRook | "MarsRook" <MarsRook_member@pathlink.com> wrote in message news:crq9l4$co6$1@digitaldaemon.com... > Thanks for your reply. My mistake, I had the perception that nested functions > were part of C99, but it appears that they are just a GNU-C extension - a very > useful one though. I guess I'll have to stick with GNU and keep thinking about > writing more portable stuff in future. I agree they're useful. > Otherwise, I have tried your D compiler a couple of times now and it seems to > mature by the month. Congratulations to this development! Thanks! |
Copyright © 1999-2021 by the D Language Foundation