February 02, 2024 Learn » Re: import locality with function parameters | |||
|---|---|---|---|
| |||
Are you thinking of this? https://dlang.org/phobos/object.html#.imported -Steve | |||
February 02, 2024 Learn » import locality with function parameters | |||
|---|---|---|---|
| |||
Hello, I seem to recall that there is surprising template to import a module and... | |||
January 25, 2024 General » Re: yet another string interp dip, simple edition | |||
|---|---|---|---|
| |||
...Then programmer call sql.bind_parameters() or sql.execute_with_parameters(). DB driver make another... | |||
January 25, 2024 Announce » Re: Preparing for the New DIP Process | |||
|---|---|---|---|
| |||
...d
mixin(q{
static foreach(p; __traits(parameters))
{{
enum pname = __traits(identifier, p);
static if... | |||
January 22, 2024 General » Re: Range Redesign: Copy Semantics | |||
|---|---|---|---|
| |||
...not without explicit calls to move. ref parameters and return values would solve some of... | |||
January 22, 2024 Learn » Re: Setting field of struct object | |||
|---|---|---|---|
| |||
...D you can also just use named parameters:
```d
import std;
struct Person {
/*private*/ string... | |||
January 22, 2024 General » Re: Range Redesign: Copy Semantics | |||
|---|---|---|---|
| |||
...an implicit parameter called `it` and explicit parameters come after the opening curly brace: `{ p1... | |||
January 20, 2024 General » Re: `alias x = v.x;` not working in struct bodies? | |||
|---|---|---|---|
| |||
...Yes, in some cases (such as template parameters) you can alias an expression. This is... | |||
January 20, 2024 Learn » Partial function application (Currying) | |||
|---|---|---|---|
| |||
...function g defined within mail accepts two parameters and should be applied partially. I found... | |||
January 20, 2024 General » `alias x = v.x;` not working in struct bodies? | |||
|---|---|---|---|
| |||
...in method bodies? In the method/constructor parameters it's working as expected. But not... | |||
Copyright © 1999-2021 by the D Language Foundation