TypeInfo in the library

Jacob Carlborg doob at me.com
Mon Feb 17 12:29:23 PST 2014


On 2014-02-17 17:01, Kenji Hara wrote:

> - modue private functions
>
>    module a;
>    private string foo() { ... }
>    enum x = foo();
>    // Compiler can elide codegen for 'foo', if other declarations
>    // in module a don't use it for runtime code.

Private functions can be called from other modules via function pointers.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list