From ~~a~~ little reading, it seems associative array literal
initialization is still pending for global scope, but allowed in
a module constructor? *If I understood the skimming surface
reading so far*.
```d
immutable string[string] things;
static (this) {
things = ["key1": "value 1", "ke
On Sunday, 22 August 2021 at 10:24:13 UTC, Mathias LANG wrote:
On Sunday, 22 August 2021 at 03:22:02 UTC, Brian Tiffin wrote:
...
IIUC, you want to generate multiple binaries, too ?
In which case, I think you need more of a build tool solution
than a language solution.
Recent-ish versions o
On Sunday, 22 August 2021 at 12:20:56 UTC, Alexey wrote:
On Saturday, 21 August 2021 at 20:35:43 UTC, Alexey wrote:
Hello
```D
interface Int
{
void coolFunc();
}
class C1
{
void coolFunc()
{
return;
}
}
class C2 : C1, Int
{
}
void main()
{
auto c = new C2;
}
```
d
On Sunday, 22 August 2021 at 14:40:29 UTC, james.p.leblanc wrote:
It is a bit scary how you guessed very closely what I am trying
to
do. I have a AVX aligned pointers (obtained from fftw_malloc),
that I
want to protect.
To be a bit more specific. The code that reads/writes from
to/from fftw
On Sunday, 22 August 2021 at 14:35:48 UTC, Ali Çehreli wrote:
On 8/22/21 6:03 AM, james.p.leblanc wrote:
> struct Foo {
> int a, b, c;
> Foo* myadd;
>
> this(int a, int b, int c) {
> this.a = a;
> this.b = b;
> this.c = c;
>
On Sunday, 22 August 2021 at 13:37:50 UTC, jfondren wrote:
this(this) {
unique = null;
}
~this() {
pureFree(unique);
}
}
Dear jfondren,
I truly appreciate you taking the time to help me with my
question!
**This bit of magic with the postblit may hold the ke
On 8/22/21 6:03 AM, james.p.leblanc wrote:
> struct Foo {
> int a, b, c;
> Foo* myadd;
>
> this(int a, int b, int c) {
> this.a = a;
> this.b = b;
> this.c = c;
> this.myadd = &this;
As Matthias Lang mentioned, k
On Sunday, 22 August 2021 at 13:28:24 UTC, Mike Parker wrote:
On Sunday, 22 August 2021 at 12:22:41 UTC, Виталий Фадеев wrote:
https://forum.dlang.org/post/s5pvtq$2q83$1...@digitalmars.com
On Wednesday, 21 April 2021 at 19:54:35 UTC, rikki cattermole
wrote:
On 22/04/2021 7:51 AM, Alain De Vo
On Sunday, 22 August 2021 at 13:03:20 UTC, james.p.leblanc wrote:
On Sunday, 22 August 2021 at 11:10:33 UTC, jfondren wrote:
On Sunday, 22 August 2021 at 07:58:12 UTC, james.p.leblanc
wrote:
Hello,
If you don't get an answer that you like, I suggesting posting
functional code and then stating
On Sunday, 22 August 2021 at 13:28:24 UTC, Mike Parker wrote:
On Sunday, 22 August 2021 at 12:22:41 UTC, Виталий Фадеев wrote:
https://forum.dlang.org/post/s5pvtq$2q83$1...@digitalmars.com
On Wednesday, 21 April 2021 at 19:54:35 UTC, rikki cattermole
wrote:
On 22/04/2021 7:51 AM, Alain De Vo
On Sunday, 22 August 2021 at 12:22:41 UTC, Виталий Фадеев wrote:
https://forum.dlang.org/post/s5pvtq$2q83$1...@digitalmars.com
On Wednesday, 21 April 2021 at 19:54:35 UTC, rikki cattermole
wrote:
On 22/04/2021 7:51 AM, Alain De Vos wrote:
import bindc.opengl;
bindbc
bindbc-opengl provide
On Sunday, 22 August 2021 at 11:10:33 UTC, jfondren wrote:
On Sunday, 22 August 2021 at 07:58:12 UTC, james.p.leblanc
wrote:
Hello,
If you don't get an answer that you like, I suggesting posting
functional code and then stating your dissastisfactions with it.
Mattias, jfondren,
Thanks both
https://forum.dlang.org/post/s5pvtq$2q83$1...@digitalmars.com
On Wednesday, 21 April 2021 at 19:54:35 UTC, rikki cattermole
wrote:
On 22/04/2021 7:51 AM, Alain De Vos wrote:
import bindc.opengl;
bindbc
bindbc-opengl provides glu* functions ?
gluNewTess
gluTessCallback
gluTessProperty
gluT
On Saturday, 21 August 2021 at 20:35:43 UTC, Alexey wrote:
Hello
```D
interface Int
{
void coolFunc();
}
class C1
{
void coolFunc()
{
return;
}
}
class C2 : C1, Int
{
}
void main()
{
auto c = new C2;
}
```
dmd says it's not Ok:
t.d(14): Error: class `t.C2` interfac
On Sunday, 22 August 2021 at 07:58:12 UTC, james.p.leblanc wrote:
Hello,
Question about a possible strategy to avoid problems with
undesired/unintended copying of a structure:
1) We have a struct, call this **Foo**.
2) We instantiate it with, **x = Foo(a,b,c);**
a. our constructor wi
On Sunday, 22 August 2021 at 07:58:12 UTC, james.p.leblanc wrote:
Is there a better way?
Best Regards,
James
```
public mixin template NonMovableOrCopyable ()
{
@disable this ();
@disable this (this);
@disable ref typeof (this) opAssign () (auto ref typeof(this)
rhs);
}
```
Thi
On Sunday, 22 August 2021 at 03:22:02 UTC, Brian Tiffin wrote:
Is this wrong thinking? I'm ~~working on~~ playing with a
first project.
Meant to be a suite of tools, each usable from the command
line, i.e. with a `main`. Then a manager program that accepts
subcommands for dispatch *and othe
Hello,
Question about a possible strategy to avoid problems with
undesired/unintended copying of a structure:
1) We have a struct, call this **Foo**.
2) We instantiate it with, **x = Foo(a,b,c);**
a. our constructor will initialize a field: **this.myadd
= &this**
b. this cap
18 matches
Mail list logo