Is there some way to do:
```D
string[3] data; //strings from some file input, some are ints,
uints, etc.
auto into!(T)(T value){return to!???(value); } // ???
uint time = into!(data[1]); // We already know this is uint
int priority = into!(data[2]);
```
instead of:
```D
uint time = to!uint(da
On Friday, 2 February 2024 at 01:23:11 UTC, Steven Schveighoffer
wrote:
Are you thinking of this?
https://dlang.org/phobos/object.html#.imported
-Steve
Yes! Glad it's now part of D.
Thank you.
On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:
this is my code, I'm a begginer on vibe, and I want to use html
and not diet files
`import vibe.vibe;
void main()
{
auto settings = new HTTPServerSettings;
settings.port = 8080;
settings.bindAddresses = [":
On Monday, 22 January 2024 at 11:31:11 UTC, zjh wrote:
On Monday, 22 January 2024 at 08:54:54 UTC, zjh wrote:
```d
struct Person {
string name, email;
ulong age;
}
Person a{"n","email",33};
```
C++ can achieve ultimate `simplicity` without violating `DRY`,
And here, D violates the `D
On Friday, 2 February 2024 at 00:29:51 UTC, Carl Sturtivant wrote:
Hello,
I seem to recall that there is surprising template to import a
module and get a type from it inside the declaration of the
type of a parameter to a function, so that the module need not
be imported outside of the functi
Hello,
I seem to recall that there is surprising template to import a
module and get a type from it inside the declaration of the type
of a parameter to a function, so that the module need not be
imported outside of the function definition. I think there was a
blog article some years ago abou
On Monday, 22 January 2024 at 08:27:36 UTC, Joel wrote:
```d
import std;
struct Person {
string name, email;
ulong age;
auto withName(string name) { this.name=name; return this; }
auto withEmail(string email) { this.email=email; return
this; }
auto withAge(ulong age) { this
On Monday, 22 January 2024 at 15:47:23 UTC, bachmeier wrote:
On Monday, 22 January 2024 at 15:45:45 UTC, zjh wrote:
On Monday, 22 January 2024 at 15:33:01 UTC, ryuukk_ wrote:
it only took me 1 project to never want to touch C++ again..
D language used to have no `copy constructor`, isn't it
On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:
this is my code, I'm a begginer on vibe, and I want to use html
and not diet files
Take a look at the static file example, I think that's close to
what you're looking for.
https://github.com/vibe-d/vibe.d/blob/master/examples/ht
On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:
!!! 5
html
body
h1 hello diet
-iframe("hola.html")
please help me :')
Try
```
html
body
h1 hello diet
iframe(src="hola.html")
```
10 matches
Mail list logo