Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D?

2024-09-11 Thread WB via Digitalmars-d-learn
On Wednesday, 11 September 2024 at 19:44:54 UTC, Salih Dincer wrote: It looks clean and understandable. What is not understandable is that it has not been included in std.stdio for over 10 years. I know, string interpolation has just been integrated, but why hasn't something like this been deve

Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D?

2024-09-11 Thread WB via Digitalmars-d-learn
On Sunday, 8 September 2024 at 22:01:10 UTC, WraithGlade wrote: Specifically, I want a way to create a print command that behaves like `@show` from Julia lang or `dump` from (if my memory is correct) Nim. Yes. https://github.com/baryluk/echo/blob/master/echo.d#L205-L209 ```d mixin(echo("e

Re: Any ways to get addr2line working with DMD? works fine with GDC

2023-03-17 Thread WB via Digitalmars-d-learn
On Thursday, 16 March 2023 at 22:07:04 UTC, ryuukk_ wrote: Hello, The problem is when i compile with DMD i get: ``` ??:0 ``` When i compile it with GDC i get proper file + line What does GDC do different than DMD? Is there a way to get the same result as GDC with DMD? Thanks Did you com