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
  • std.uni Codepoin... Carl Sturtivant via Digitalmars-d-learn
    • Re: std.uni... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: std... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: std... Carl Sturtivant via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... H. S. Teoh via Digitalmars-d-learn
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Carl Sturtivant via Digitalmars-d-learn
            • ... H. S. Teoh via Digitalmars-d-learn
            • ... Danilo via Digitalmars-d-learn
              • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... Paul Backus via Digitalmars-d-learn

Reply via email to