Thread overview
[Issue 16175] allow statements and declaration in a compiles block
Jun 15, 2016
Ketmar Dark
Jun 15, 2016
Ketmar Dark
Nov 09, 2022
RazvanN
June 15, 2016
https://issues.dlang.org/show_bug.cgi?id=16175

--- Comment #1 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
actually, most of the time you can do that with this:

__traits(compiles,{int* cMutable = &c;})

just use lambda syntax -- we have many of 'em in D. ;-)

--
June 15, 2016
https://issues.dlang.org/show_bug.cgi?id=16175

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--
November 09, 2022
https://issues.dlang.org/show_bug.cgi?id=16175

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Yes, it works, you just need to use a block statement.

--