Re: .get refuses to work on associative array

2020-04-15 Thread p.shkadzko via Digitalmars-d-learn
On Wednesday, 15 April 2020 at 22:09:32 UTC, H. S. Teoh wrote: On Wed, Apr 15, 2020 at 09:46:58PM +, p.shkadzko via Digitalmars-d-learn wrote: [...] Are you sure the error is on the line you indicated? The error message claims that your argument types are (double[string], string, string)

Re: Extracting user defined attributes on function parameters

2020-04-15 Thread Jean-Louis Leroy via Digitalmars-d-learn
Thanks to both of you! As part of implementing full support for attributes in openmethods, I am developing a reflection library. That helped a lot. is() is a bit weird, but I described it in my "D Cookbook" to some success... I am going to order it...even though it is not available on Kin

Re: .get refuses to work on associative array

2020-04-15 Thread bauss via Digitalmars-d-learn
On Wednesday, 15 April 2020 at 22:09:32 UTC, H. S. Teoh wrote: On Wed, Apr 15, 2020 at 09:46:58PM +, p.shkadzko via Digitalmars-d-learn wrote: I am quite confused by the following exception during dub build: > dub build --single demo.d --compiler=ldc2 --force Performing "debug" build using

Re: .get refuses to work on associative array

2020-04-15 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Apr 15, 2020 at 09:46:58PM +, p.shkadzko via Digitalmars-d-learn wrote: > I am quite confused by the following exception during dub build: > > > dub build --single demo.d --compiler=ldc2 --force > Performing "debug" build using ldc2 for x86_64. > demo ~master: building configuration "

.get refuses to work on associative array

2020-04-15 Thread p.shkadzko via Digitalmars-d-learn
I am quite confused by the following exception during dub build: dub build --single demo.d --compiler=ldc2 --force Performing "debug" build using ldc2 for x86_64. demo ~master: building configuration "application"... demo.d(221,20): Error: template object.get cannot deduce function from argume

Re: __init unresolved external when using C library structs converted with dstep

2020-04-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/15/20 8:38 AM, Robert M. Münch wrote: On 2020-04-14 18:44:55 +, Steven Schveighoffer said: On 4/14/20 2:29 PM, Robert M. Münch wrote: No. Is that the missing part? Probably. I think the compiler expects whatever is compiling the imported file to provide the symbol. If you aren't co

Re: __init unresolved external when using C library structs converted with dstep

2020-04-15 Thread Robert M. Münch via Digitalmars-d-learn
On 2020-04-14 18:44:55 +, Steven Schveighoffer said: On 4/14/20 2:29 PM, Robert M. Münch wrote: Ah, ok. That's why the problem went (temporarly) away when I did a: myCstruct a = {0,0}; for example? I don't know what causes it to be emitted when. Sometimes it doesn't make a whole lot of