On Monday, 20 June 2022 at 13:20:51 UTC, Steven Schveighoffer
wrote:
And you can also use an inner struct to define overloaded
functions.
I believe templates make a better bandaid
```d
void main(){
template bar(){
void bar_(int){}
void bar_(float){}
On Wednesday, 22 June 2022 at 09:41:55 UTC, Antonio wrote:
I'm so sorry, I know that the above example doesn't work:
```d
main(){
Struct PersonDTO {
string name;
string surname;
}
void create(PersonDTO personData){
// ...
}
create( {name: "Peter", surname: "Ustinov"} );
On Wednesday, 22 June 2022 at 11:19:59 UTC, Antonio wrote:
I see now: DIP 1033 will solve this (i.e., using named
arguments in struct constructor... similar to how dart/flutter
works)
That would be DIP 1030:
https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1030.md
Max
When I get Deprecation warning from template, I can not find the
root cause of the problem.
```sh
Deprecation: argument `_param_1` for format specification `"%d"`
must be `int`, not `ulong`
```
Is there a options to turn the Deprecation warning into assert
error, so I can know the
I'm so sorry, I know that the above example doesn't work:
```d
main(){
Struct PersonDTO {
string name;
string surname;
}
void create(PersonDTO personData){
// ...
}
create( {name: "Peter", surname: "Ustinov"} );
}
```
-Is it there any alternative to initialize "inline"
On 6/22/22 2:05 AM, monkyyy wrote:
On Monday, 20 June 2022 at 13:20:51 UTC, Steven Schveighoffer wrote:
And you can also use an inner struct to define overloaded functions.
I believe templates make a better bandaid
```d
void main(){
template bar(){
void bar_(int){}
void
Hi,
I know with PyD, D can call Python, and with autowrap, Python can
call a D .dll, I'm just wondering if someone can show an example
that Python <==> d can call both ways? esp. show passing D
objects to Python and then call its member function there, and
vice versa.
Thanks.
On Thursday, 23 June 2022 at 02:35:25 UTC, Tejas wrote:
IIRC the best you can do is embed a Python interpreter inside a
D program
https://pyd.readthedocs.io/en/latest/embed.html
Thanks. I tried something like this:
https://github.com/symmetryinvestments/autowrap/issues/314
Although
On Wednesday, 22 June 2022 at 16:02:00 UTC, mw wrote:
Hi,
I know with PyD, D can call Python, and with autowrap, Python
can call a D .dll, I'm just wondering if someone can show an
example that Python <==> d can call both ways? esp. show
passing D objects to Python and then call its member
On Wednesday, 22 June 2022 at 16:02:00 UTC, mw wrote:
Hi,
I know with PyD, D can call Python, and with autowrap, Python
can call a D .dll, I'm just wondering if someone can show an
example that Python <==> d can call both ways? esp. show
passing D objects to Python and then call its member
On Wednesday, 22 June 2022 at 16:02:00 UTC, mw wrote:
Hi,
I know with PyD, D can call Python, and with autowrap, Python
can call a D .dll, I'm just wondering if someone can show an
example that Python <==> d can call both ways? esp. show
passing D objects to Python and then call its member
11 matches
Mail list logo