4 ms·
The history behind this actually goes the other way if I remember correctly; it was unclear for a time whether or not this sort of thing was allowed. The standa
by okmjuhb 16y ago
The history behind this actually goes the other way if I remember correctly; it was unclear for a time whether or not this sort of thing was allowed. The standard was modified so that Duff's device would be legal code after it was being used.
- ssp 16y agoTom Duff himself writes about it here: http://doc.cat-v.org/bell_labs/duffs_device http://doc.cat-v.org/bell_labs/duffs_device In particular, The device is legal dpANS C. I cannot quote chapter and verse, but Larry Rosler, who was chairman of the language subcommittee (I think), has assured me that X3J11 considered it carefully and decided that it was legal. Somewhere I have a note from dmr certifying that all the compilers that he believes in accept it. Of course, the device is also legal C++, since Bjarne uses it in his book.
- deleted 16y ago[deleted]