scope(exit) without exception handling?

Timon Gehr timon.gehr at gmx.ch
Wed May 16 14:34:18 PDT 2012


On 05/16/2012 11:09 PM, H. S. Teoh wrote:
>
> OK, this isn't the same as your nothrow wrapper, but the principle is
> the same. The funcWrap template can basically call _any_ function that
> returns _anything_.
>
> D just acquired whole new levels of cool for me. :-)
>

There are still some restrictions to be sorted out though. For example, 
try it with funcWrap(&printShort,1);


More information about the Digitalmars-d mailing list