On Friday, 20 May 2022 at 14:54:31 UTC, Christopher Katko wrote:
If the declarations are at module scope, `static` has no
effect, and CTFE will be used for initialization.
It won't use CTFE? Why is there a local module requirement?
"module scope" just means at the top level in a module. so
On 5/20/22 07:59, Alexander Zhirov wrote:
> I have a loop spinning, I want to pause in it in order to repeat the
> next iteration. An error is displayed during compilation.
>
> ```d
> while (true)
> {
We are in an unconditional loop which is also infinite.
> }
But you have code
On Friday, 20 May 2022 at 14:59:07 UTC, Alexander Zhirov wrote:
I have a loop spinning, I want to pause in it in order to
repeat the next iteration. An error is displayed during
compilation.
The error has nothing to do with the sleep
source/app.d(32,5): Warning: statement is not reachable
On Friday, 20 May 2022 at 14:54:31 UTC, Christopher Katko wrote:
So wait, that means if I have a module with extra stuff like
D
colors.d
auto red =
// grey
and then in my other file
D
auto white = grey(1.0);
It won't use CTFE? Why is there a local module requirement?
I'm
On Friday, 20 May 2022 at 13:16:00 UTC, frame wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default
On Friday, 20 May 2022 at 07:05:21 UTC, Tejas wrote:
Maybe gtkd?
https://code.dlang.org/packages/gtk-d
And some corresponding tutorials:
https://gtkdcoding.com/
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default build mode for 32bit
was changed to MS-COFF and it
On Friday, 20 May 2022 at 02:30:10 UTC, Mike Parker wrote:
On Friday, 20 May 2022 at 00:12:44 UTC, Chris Katko wrote:
Yeah that occurred to me as I was falling asleep. Though, do I
have to a specify
```D
static auto myColor = grey(0.5);
```
to ensure it's done at compile time? It's not the
On Friday, 20 May 2022 at 03:47:14 UTC, harakim wrote:
Thank you. I will definitely give that a try.
My minigui uses the normal Windows controls so it works well
there. On linux it uses a custom thing of my own design so your
mileage may vary.
The docs don't have a lot of examples but
On Friday, 20 May 2022 at 01:41:59 UTC, Ali Çehreli wrote:
On 5/19/22 16:44, Vijay Nayar wrote:
> If I remove the call from `static this()`, then the web call
works as
> normal. Any idea why calling vibe.d's `requestHTTP` function
inside of a
> module's static construction would cause an
I have a loop spinning, I want to pause in it in order to repeat
the next iteration. An error is displayed during compilation.
```d
import std.stdio;
import modules.monitors; //my module
import core.thread;
int main(string[] args)
{
string path = "mswitch.log";
if (args.length > 1)
Avoid GTK, it's bloated, GTK4 looks like a toolkit to design
mobile apps, and you need runtime dependencies on windows
adam's gui library is very nice, 0 dependencies
I personally prefer IMGUI, 0 dependencies, you bring the
windowing library of your choice, i pick GLFW since it's minimal
On Friday, 20 May 2022 at 02:37:48 UTC, harakim wrote:
I need to write a piece of software to track and categorize
some purchases. It's the kind of thing I could probably write
in a couple of hours in C#/Java + html/css/javascript. However,
something keeps drawing me to D and as this is a
On Friday, 20 May 2022 at 01:41:59 UTC, Ali Çehreli wrote:
On 5/19/22 16:44, Vijay Nayar wrote:
> If I remove the call from `static this()`, then the web call
works as
> normal. Any idea why calling vibe.d's `requestHTTP` function
inside of a
> module's static construction would cause an
On Friday, 20 May 2022 at 02:37:48 UTC, harakim wrote:
`winrt` may be good.
but `winrtd` has many bugs.
15 matches
Mail list logo