System programming in D (Was: The God Language)

Jacob Carlborg doob at me.com
Wed Jan 4 23:19:09 PST 2012


On 2012-01-04 16:31, Artur Skawina wrote:
> On 01/04/12 10:39, Manu wrote:
>> Walter made an argument "The same goes for all those language extensions you mentioned. Those are not part of Standard C. They are vendor extensions. Does that mean that C is not actually a systems language? No."
>> This is absurd... are you saying that you expect Iain to add these things to GDC to that people can use them, and then create incompatible D code with the 'standard' compiler?
>
> Some of these things are *already* in GDC... Probably not documented and tested enough [1], but they are there. So you /can/ have function declarations such as:
>
> pragma(GNU_attribute, always_inline, flatten, hot) int fxx(int i) { ... }

If you want your code to be portable (between compilers) you would need 
to wrap that in a version statement.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list