On 1/15/22 20:09, forkit wrote:
> so at this link: https://dlang.org/spec/arrays.html
>
> it indicates an array of type[] is of type 'Dynamic array'.
I have a problem with calling type[] a dynamic array because it is a
slice, which may be providing access to the elements of a dynamic array.
On
so at this link: https://dlang.org/spec/arrays.html
it indicates an array of type[] is of type 'Dynamic array'.
with that in mind, I ask, is this below a 'Dynamic array'.
If not, why not?
int[][] mArr2 = array(iota(1, 9).chunks(2).map!array.array);
On 1/12/22 00:50, Bagomot wrote:
> If I change the run method of the Guard class so that it starts a new
> thread, the program just does nothing:
> ```d
> public void run() {
> spawn((shared EventLoop eventLoop) {
> while ((cast() eventLoop).loop()) {
> continue;
The p
I am writing a simple event handler object for observer pattern.
https://gist.github.com/run-dlang/d58d084752a1f65148b33c796535a4e2
(note: the final implementation will use an array of listeners,
but I want to keep it simple for now and have only one handler
per event).
Is there some way I c
On Saturday, 15 January 2022 at 19:07:20 UTC, frame wrote:
On Wednesday, 12 January 2022 at 08:50:09 UTC, Bagomot wrote:
Why? What am I doing wrong?
I guess your main() exits and just ends all threads?
No, the program continues to run. And I tested it with while in
main.
On Wednesday, 12 January 2022 at 08:50:09 UTC, Bagomot wrote:
Why? What am I doing wrong?
I guess your main() exits and just ends all threads?
On Wednesday, 12 January 2022 at 08:50:09 UTC, Bagomot wrote:
Good day! I keep giving rise to problems.
Above, Tejas helped me a lot, but still doesn't work.
I gave up using the fswatch library, thinking that the problem
was in it.
Now trying to do it using libasync.
Here is the code that runs