https://forum.dlang.org/post/eeqqmlojlniiihgyb...@forum.dlang.org
On Sunday, 16 January 2022 at 09:38:52 UTC, Bagomot wrote:
The program does nothing probably because of that continue. (?)
No, it does work inside the loop.
So, the event loop is in a separate thread. What should happen
when t
On Thursday, 23 March 2023 at 13:38:51 UTC, Alexander Zhirov
wrote:
Is it possible to convert such records inside the structure to
the assigned type?
```d
struct MyVal
{
string value;
// Here it would be possible to use an alias to this, but
it can only be used 1 time
}
auto a = MyVa
On Friday, 24 March 2023 at 09:39:00 UTC, Jacob Shtokolov wrote:
On Thursday, 23 March 2023 at 13:38:51 UTC, Alexander Zhirov
wrote:
Is it possible to convert such records inside the structure to
the assigned type?
BTW, you can also `alias this` your struct value and then use
`std.conv : to`
On Friday, 24 March 2023 at 09:46:26 UTC, Jacob Shtokolov wrote:
BTW, you can also `alias this` your struct value and then use
`std.conv : to` for casting, if you don't need specific casting
rules.
I don't quite understand what you mean? Could you show me an
example?
On Friday, 24 March 2023 at 09:59:47 UTC, Alexander Zhirov wrote:
On Friday, 24 March 2023 at 09:46:26 UTC, Jacob Shtokolov wrote:
BTW, you can also `alias this` your struct value and then use
`std.conv : to` for casting, if you don't need specific
casting rules.
I don't quite understand what
On Thursday, 23 March 2023 at 13:38:51 UTC, Alexander Zhirov
wrote:
Is it possible to convert such records inside the structure to
the assigned type?
```d
struct MyVal
{
string value;
// Here it would be possible to use an alias to this, but
it can only be used 1 time
}
auto a = MyVa
On Friday, 24 March 2023 at 13:53:02 UTC, bachmeier wrote:
On Thursday, 23 March 2023 at 13:38:51 UTC, Alexander Zhirov
wrote:
Is it possible to convert such records inside the structure to
the assigned type?
```d
struct MyVal
{
string value;
// Here it would be possible to use an alia
On Tuesday, 21 March 2023 at 16:57:49 UTC, monkyyy wrote:
My current method of making videos of using raylib to generate
screenshots, throwing those screenshots into a folder and
calling a magic ffmpeg command is ... slow.
Does anyone have a demo or a project that does something
smarter (or w
On Friday, 24 March 2023 at 15:41:36 UTC, Guillaume Piolat wrote:
Hi,
The idea to pipe stdout to ffmpeg is sound.
In the following dead repo: https://github.com/p0nce/y4m-tools
you will find a tool that capture a shader, format it into Y4M
and output on stdout.
Y4M output is useful because
Hello everyone,
once again, I am here for your help. My last questions were
answered really competently so I try again. :P
So, maybe this is a stupid question, but I have read a lot about
Bindings to C and C++ libraries for D. For example the Derelict
project (or now [BindBC](https://github.
On Thursday, 23 March 2023 at 13:38:51 UTC, Alexander Zhirov
wrote:
```d
struct MyVal
{
string value;
// Here it would be possible to use an alias to this, but
it can only be used 1 time
}
auto a = MyVal("100");
auto b = MyVal("11.2");
int MyInt = a;// Implicitly convert to ta
Howdy,
I've just tried out `std.variant` and I've noticed that I can
induce a segfault by having a variant of variants. Should this
work?
```d
import std.stdio;
import std.variant;
void main()
{
Variant variant = Variant([
"one": Variant(1),
"two": Variant(2),
"three": Variant(
12 matches
Mail list logo