On 12/01/2026 3:56 AM, Mike Parker wrote:
Bastiaan recalled an initiative for nonallocating exceptions and wondered what the story was. Walter said there was a compiler switch that enabled them and it did work, but there were some issues with it he never fully understood. I said Razvan could probably explain it, and that I recalled it had to do with stack trace generation. Walter said that sounded like that was probably the issue.

Non-allocating would not be DIP1008, it would've been my value typed exceptions. DIP1008 allocated with malloc and then RC'd.

Sadly they wouldn't have worked, due to the architecture of the compiler wrt. inferred attributes.

You would've had to manually annotate them and it would be too frequent to be usable.

As far as I know, the design was still good, but... still DOA currently.

So I'm in the process of trying to find a new solution to exceptions.
Without the need for platform/target specific stack unwinding code.
  • D Language Fo... Mike Parker via Digitalmars-d-announce
    • Re: D La... Kapendev via Digitalmars-d-announce
      • Re: ... Sergey via Digitalmars-d-announce
    • Re: D La... monkyyy via Digitalmars-d-announce
      • Re: ... Sergey via Digitalmars-d-announce
        • ... Kapendev via Digitalmars-d-announce
          • ... Sergey via Digitalmars-d-announce
    • Re: D La... bauss via Digitalmars-d-announce
      • Re: ... Kapendev via Digitalmars-d-announce
    • Re: D La... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
      • Re: ... Bastiaan Veelo via Digitalmars-d-announce
    • Re: D La... Bastiaan Veelo via Digitalmars-d-announce
    • Re: D La... H. S. Teoh via Digitalmars-d-announce
    • Re: D La... apz28 via Digitalmars-d-announce
      • Re: ... H. S. Teoh via Digitalmars-d-announce
      • Re: ... monkyyy via Digitalmars-d-announce
        • ... Serg Gini via Digitalmars-d-announce
          • ... monkyyy via Digitalmars-d-announce
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
              • ... H. S. Teoh via Digitalmars-d-announce

Reply via email to