Discussing exception translation with GPT-5 mini: lazy void parameters

Forum User forumuser at example.com
Wed Apr 8 20:20:47 UTC 2026


On Wednesday, 8 April 2026 at 07:33:56 UTC, Alexandru Ermicioi 
wrote:
> [...]
> Small improvement: pass source exception into translated one, 
> to not lose entire stack of exceptions.

```
T translate (Ein, Eout, T) (lazy T t)
{
    try return t;
    catch (Ein e) throw new Eout (e.msg, e.file, e.line, e);
}
```

right?


More information about the Digitalmars-d mailing list