can we use D to programming ESP32?

2019-07-10 Thread dangbinghoo via Digitalmars-d-learn
hi there, Does anyone know what's D's status for ESP32? I just getting started a few days programming with ESP32, and found the official esp-idf SDK even get CPP enabled by default, and this makes the HelloWorld app used 160KB of flash. What I want to talk is that ESP32 might be a powerful

Alias function with arguments

2019-07-10 Thread Jamie via Digitalmars-d-learn
Is it possible to alias a function and its arguments, but for that function to only be evaluated when the alias is used? For example alias pragma(inline, true) inline inline void func(){}

Re: LDC won't find ld linker -why?

2019-07-10 Thread Johan Engelen via Digitalmars-d-learn
On Tuesday, 9 July 2019 at 15:25:17 UTC, Dukc wrote: I just downloaded ldc 1.15.0 for Linux from GH releases. Testing it, it will make the object file out of a hello world application, but then complain: ``` collect2: fatal error: cannot find ‘ld’ compilation terminated. ``` Run LDC with

Re: Blog Post #0051: MVC IV - ComboBox with Text

2019-07-10 Thread Greatsam4sure via Digitalmars-d-learn
On Tuesday, 9 July 2019 at 12:08:04 UTC, Ron Tarrant wrote: Today's post starts a mini series-within-a-series on dressing up the ComboBox using a ListStore. Essentially, it's ListStore basics leading up to how this type of model is used with a TreeView. You can find it here:

"lld-link: error: could not open libcmt.lib: no such file or directory"

2019-07-10 Thread moth via Digitalmars-d-learn
hi all! after a long while away, i thought i'd download the latest D release and give learning it another shot. unfortunately, it looks like i screwed up somewhere big time =[ it was working fine for me before [a few months ago i think], but now whenever i try to compile i get the message

Re: Is there any way to define an interface that can implicitly convert to Object?

2019-07-10 Thread Basile B. via Digitalmars-d-learn
On Wednesday, 10 July 2019 at 08:03:30 UTC, Nathan S. wrote: I want to be able to do things like: --- bool isSame(Object a, Object b) { return a is b; } interface SomeInterface { int whatever(); } bool failsToCompile(SomeInterface a, SomeInterface b) { return isSame(a, b); } --- Error:

Is there any way to define an interface that can implicitly convert to Object?

2019-07-10 Thread Nathan S. via Digitalmars-d-learn
I want to be able to do things like: --- bool isSame(Object a, Object b) { return a is b; } interface SomeInterface { int whatever(); } bool failsToCompile(SomeInterface a, SomeInterface b) { return isSame(a, b); } --- Error: function isSame(Object a, Object b) is not callable using