Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 800 of 2,753    |
|    Hans-Peter Diettrich to Chris Dollin    |
|    Re: Generating a simple hand-coded like     |
|    26 Sep 06 01:04:41    |
      From: DrDiettrich1@aol.com              Chris Dollin wrote:              >>C99 states that type declarations are not allowed in C procedure       >>definitions.       >       >       > Interesting. The draft has no such restriction in the typedef section,       > and an explicit example with a typedef inside a function. Could you       > provide a cite for me?              Just from the DRAFT: 2 December 1996:        >>       7.1.3 ... [dcl.typedef]       1. ... The typedef specifier shall not be used in a function-definition       (8.4),       <<              Can somebody lookup this paragraph in the final spec?       (The numbers have changed!)              DoDi       [I can't find that language, but there is a lengthy footnote on page       141 with examples that specifically say that you can typedef a       function type and use it in declarations but not in       definitions. -John]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca