On Tuesday, 17 October 2023 at 07:53:28 UTC, Vitaliy Fadeev wrote:
On Tuesday, 17 October 2023 at 07:22:41 UTC, Vitaliy Fadeev
wrote:
[...]
`scriptlike` looks perfecto!
```D
enum JMP_ADDR_R = ...
...
import scriptlike;
writeln(
On Tuesday, 17 October 2023 at 07:22:41 UTC, Vitaliy Fadeev wrote:
On Tuesday, 17 October 2023 at 06:57:07 UTC, Imperatorn wrote:
On Tuesday, 17 October 2023 at 06:46:31 UTC, Vitaliy Fadeev
wrote:
Hi all!
I want readable mixin.
I want pass variable to string.
I want string with named args
On Tuesday, 17 October 2023 at 06:57:07 UTC, Imperatorn wrote:
On Tuesday, 17 October 2023 at 06:46:31 UTC, Vitaliy Fadeev
wrote:
Hi all!
I want readable mixin.
I want pass variable to string.
I want string with named args.
Like this:
```D
enum JMP_ADDR_R = "RAX";
mixin( f
On Tuesday, 17 October 2023 at 06:46:31 UTC, Vitaliy Fadeev wrote:
Hi all!
I want readable mixin.
I want pass variable to string.
I want string with named args.
Like this:
```D
enum JMP_ADDR_R = "RAX";
mixin( format!"asm {
jmp [JMP_ADDR_R];
Hi all!
I want readable mixin.
I want pass variable to string.
I want string with named args.
Like this:
```D
enum JMP_ADDR_R = "RAX";
mixin( format!"asm {
jmp [JMP_ADDR_R];
}"( JMP_ADDR_R ));// IT NOT WORK
```
Not this:
```D
enum JMP_ADDR_R
http://melpon.org/wandbox/permlink/u8lpOZ9owC7QXfa3
hi, that code is based on ideas and code from this[1] thread.
some examples:
// named and in order
args!(fun, a=>6, b=>65, s=>"test", f=>1.4);
// named and out of order
args!(fun, b=>65, f=>1.4, s=>"test", a=>6);
// unnamed and in
https://issues.dlang.org/show_bug.cgi?id=11548
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|unspecified |D2
--
https://issues.dlang.org/show_bug.cgi?id=11548
Mathias LANG pro.mathias.l...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://d.puremagic.com/issues/show_bug.cgi?id=11548
Summary: ParameterDefaultValueTuple fails to compile when
passed in a function containing a parameter named
args.
Product: D
Version: unspecified
Platform: All