Adding noreturn and hidefromvtls attributes

2013-01-11 Thread Chaiomanot
Hello, Is there any change would could be seeing a noreturn attribute or way to hide a variable from the -vtls option in D in the near future? Sometimes it's desirable to indirectly throw an exception, especially if there's some work that needs to be done specifically relating to the exception

Re: Adding noreturn and hidefromvtls attributes

2013-01-11 Thread bearophile
Chaiomanot: Sometimes it's desirable to indirectly throw an exception, especially if there's some work that needs to be done specifically relating to the exception about to be thrown, but you don't want to have to clutter your code with assert(false) every time you do. For example: void

Re: Adding noreturn and hidefromvtls attributes

2013-01-11 Thread Chaiomanot
If your patch enforcing that a function tagged with noreturn does not return (so core.stdc.stdlib.exit must be tagged with noreturn)? It isn't currently compulsory. Any noreturn function will still compile without the attribute. If adopted, it would of course be prudent to make stdlib.exit