Continuation passing style vs. wrapper objects in dmd

Ola Fosheim Grostad ola.fosheim.grostad at gmail.com
Wed May 26 04:59:36 UTC 2021


On Tuesday, 25 May 2021 at 17:21:16 UTC, Andrei Alexandrescu 
wrote:
> int i = module_name.toCStringThen!(name => stat(name.ptr, 
> &statbuf));

This can use all alloca, if it does not inline.

> int i = stat(stringz(name).ptr, &statbuf));

This cannot...



More information about the Digitalmars-d mailing list