I tried this
ldc2 test.i -mixin="test.d"
but the test.d file is empty :(
Thread overview | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 07, 2021 How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
I tried this
but the test.d file is empty :( |
December 07, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ManKey | On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :( |
December 07, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to 12345swordy | On Tuesday, 7 December 2021 at 16:49:58 UTC, 12345swordy wrote: >On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :( I just want to convert from C file to D file, don't import it |
December 07, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ManKey | On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :( I write small script for this
|
December 07, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ManKey | On Tuesday, 7 December 2021 at 16:52:47 UTC, ManKey wrote: >On Tuesday, 7 December 2021 at 16:49:58 UTC, 12345swordy wrote: >On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :( I just want to convert from C file to D file, don't import it There's no way to convert arbitrary C files to D, but:
|
December 08, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bachmeier | On Tuesday, 7 December 2021 at 20:37:12 UTC, bachmeier wrote: >On Tuesday, 7 December 2021 at 16:52:47 UTC, ManKey wrote: >On Tuesday, 7 December 2021 at 16:49:58 UTC, 12345swordy wrote: >[...] I just want to convert from C file to D file, don't import it There's no way to convert arbitrary C files to D, but:
No way yet, expect a forum post / PR soon |
December 08, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ManKey | On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :(
|
December 08, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On Wednesday, 8 December 2021 at 09:23:41 UTC, Guillaume Piolat wrote: >On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :(
It'll probably be dropped for the next big feature before being finished, just like everything else in D. Nothing is ever completed or workable. Only ever a subset works. Not to be pessimistic but there's literally no ground-breaking feature in D that has been finished yet. Everything is only finished half-way through and doesn't work properly - referring to nogc, safe, shared, betterC, the many phobos modules under experimental. D has this mentality that it's better to start something new and exciting, than fixing up/finishing what we have. So yeah, never wait for something to be completed in D, always expect what you have now is what you have in a couple of years, except for that you can be guaranteed a tons of new half-finished features will be added along with a handful of new attributes that nobody really understands. |
December 08, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bauss | On Wednesday, 8 December 2021 at 12:05:16 UTC, bauss wrote: >On Wednesday, 8 December 2021 at 09:23:41 UTC, Guillaume Piolat wrote: >On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :(
It'll probably be dropped for the next big feature before being finished, just like everything else in D. Nothing is ever completed or workable. Only ever a subset works. Disagree. |
December 08, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On Wednesday, 8 December 2021 at 13:13:05 UTC, Guillaume Piolat wrote: >On Wednesday, 8 December 2021 at 12:05:16 UTC, bauss wrote: >On Wednesday, 8 December 2021 at 09:23:41 UTC, Guillaume Piolat wrote: >On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :(
It'll probably be dropped for the next big feature before being finished, just like everything else in D. Nothing is ever completed or workable. Only ever a subset works. Disagree. I listed things that has been unfinished for like a decade, how can you disagree by just stating a couple of examples that has been done? I never said everything doesn't get finished. I said that ground-breaking features never gets finished, things that actually matters, like shared is still broken, nogc is still too limited, allocators don't work properly and have been in experimental for years, std.json has never been replaced, same with std.sockets etc. betterC is still somewhat limited, scope has so many bugs/edge cases that hasn't been solved, making it unusable in general. I could list probably a thousand other things where D has neglected existing features for new features. |