std.uni CodepointSet toString
H. S. Teoh
hsteoh at qfbox.info
Wed Feb 7 17:11:30 UTC 2024
On Thu, Feb 08, 2024 at 05:44:59AM +1300, Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn wrote:
> On 08/02/2024 5:36 AM, Carl Sturtivant wrote:
[...]
> > ```
> > $ dmd --help | grep allinst
> > -allinst generate code for all template instantiations
> > ```
> > Unclear exactly how -allinst does this, given type parameters, and
> > it will affect all of the many templates I use in source with
> > CodepointSet.
> >
> > Can you shed any light?
>
> Basically the compiler will by default try to elide templates it
> thinks isn't used.
>
> However it doesn't always get this right, which this flag overrides by
> turning it off.
Do we know why the compiler isn't getting it right? Shouldn't we be
fixing it instead of just turning off elision completely?
T
--
Let's call it an accidental feature. -- Larry Wall
More information about the Digitalmars-d-learn
mailing list