On Thursday, 9 December 2021 at 02:20:09 UTC, zjh wrote:
>May be you need a reconstruction DIP.
DIPs are only for language specifcation changes.
December 09, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to zjh | On Thursday, 9 December 2021 at 02:20:09 UTC, zjh wrote: >May be you need a reconstruction DIP. DIPs are only for language specifcation changes. |
December 09, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hasan Kashi | On Thursday, 9 December 2021 at 07:12:59 UTC, Hasan Kashi wrote: >On Tuesday, 7 December 2021 at 16:43:21 UTC, ManKey wrote: >I tried this
but the test.d file is empty :( Write your transpiler! I have already written a small script in D. |
December 10, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On Wednesday, 8 December 2021 at 14:41:39 UTC, Guillaume Piolat wrote: >On Wednesday, 8 December 2021 at 14:30:46 UTC, Max Samukha wrote: >On Wednesday, 8 December 2021 at 13:13:05 UTC, Guillaume Piolat wrote: >Disagree. I disagree in my turn. There is a clear pattern: a new cool feature is introduced; people try to use it but give up because the feature is half-implemented/buggy; then, a few years later, the feature gets deprecated because "nobody used it". I struggle to find an example honestly? There used to be such early bumps with UDAs or nothrow, or ranges. Again I was a big user of builtin complexes, and loudly compagined against their removal. Are you sure it's not a form of Stockholm syndrome? Why is the change good? |
December 10, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Samukha | On Friday, 10 December 2021 at 02:51:11 UTC, Max Samukha wrote: >Are you sure it's not a form of Stockholm syndrome? Why is the change good? For sure there is some high degree of Stockholm, with something as addictive as D. :) But in this case:
|
December 10, 2021 Re: How to convert C to D using compiler? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On Fri, Dec 10, 2021 at 05:49:44PM +0000, Guillaume Piolat via Digitalmars-d wrote: [...] > - as a heavy complex number users: you don't really write _that_ much literals often at all. 80% of these complex literals are zero and one (for which aliases would be maybe nice in std.complex btw) > > - Complex literals always seemed a little un-D to me: > Complex!double(-2.1039 , 2.6575) Hmm, technically you *could* do something like: enum i = Complex!double(0.0, 1.0); which then lets you write: -2.1039 + 2.2.6575*i of course, this then depends on the optimizer to optimize away the redundant operation. But it would be more-or-less almost as readable as built-in complex literals. T -- Жил-был король когда-то, при нём блоха жила. |