top | item 47084919

(no title)

uecker | 9 days ago

IMHO, it is in the best interest of your students to teach them standard C first.

discuss

order

thayne|9 days ago

There is a technical specification, so hopefully it will be standard C in the next version. And given that gcc and clang already have implementatians (and gcc has had a way to do it for a long time, although the syntax is quite different).

uecker|9 days ago

It is not yet a technical specification, just a draft for one, but this will hopefully change this year, and the defer patch has not been merged into GCC yet. So I guess it will become part of C at some point if experience with it is good, but at this time it is an extension.

gignico|9 days ago

I was under the wrong assumption that defer was approved for the next standard already.

uecker|9 days ago

We will likely decide in March that it will became an ISO TS. Given the simplicity of the feature and its popularity, I would assume that it will become part of the standard eventually.