Platinum Oval Rings: Pure Luxury & Sparkle

2025-05-27 Thread Kristen Mitchell via Digitalmars-d-learn
For those seeking the pinnacle of elegance, platinum oval engagement rings offer unmatched luxury and brilliance. Known for its naturally white sheen, platinum enhances the sparkle of oval-cut diamonds without the need for rhodium plating, maintaining its luster over time. https://krkjewels.c

Re: Passing variadic template parameters AND default call site __FILE__, __LINE__ template parameters.

2025-05-27 Thread monkyyy via Digitalmars-d-learn
On Tuesday, 27 May 2025 at 21:07:51 UTC, realhet wrote: Interesting tricks: alias reassignment and templateParameterValueSpecialization (wow! It avoids the redeclaration error I normally get.). There bugs here, it works in this case(I have theories why) and in opend its considered a regress

Re: Passing variadic template parameters AND default call site __FILE__, __LINE__ template parameters.

2025-05-27 Thread realhet via Digitalmars-d-learn
On Tuesday, 27 May 2025 at 15:01:38 UTC, monkyyy wrote: On Tuesday, 27 May 2025 at 10:20:40 UTC, realhet wrote: Hi and thanks for trying! t2!(x) //The problem with this is the __LINE__ will point to the alias declaration, not the pragma. Interesting trick: template nested inside a templat

Re: Passing variadic template parameters AND default call site __FILE__, __LINE__ template parameters.

2025-05-27 Thread monkyyy via Digitalmars-d-learn
On Tuesday, 27 May 2025 at 10:20:40 UTC, realhet wrote: Hello, ```d template T1(string FILE=__FILE__, size_t LINE=__LINE__, A...) { enum T1 = FILE ~ LINE.text ~ A.text; } pragma(msg, T1!(__FILE__,__LINE__, "hello", " world")); //works pragma(msg, T1!(__FILE__,__LINE__,i"Hello $("World")")); //w

Passing variadic template parameters AND default call site __FILE__, __LINE__ template parameters.

2025-05-27 Thread realhet via Digitalmars-d-learn
Hello, ```d template T1(string FILE=__FILE__, size_t LINE=__LINE__, A...) { enum T1 = FILE ~ LINE.text ~ A.text; } pragma(msg, T1!(__FILE__,__LINE__, "hello", " world")); //works pragma(msg, T1!(__FILE__,__LINE__,i"Hello $("World")")); //works pragma(msg, T1!(i"Hello $("World")")); //error: does