Thread overview
dfix 0.1.1
Oct 28, 2014
Brian Schott
Oct 28, 2014
Daniel N
Oct 29, 2014
Martin Nowak
Oct 28, 2014
bearophile
Oct 28, 2014
Atila Neves
Oct 28, 2014
Orfeo
Oct 29, 2014
Brian Schott
Oct 29, 2014
FrankLike
Oct 29, 2014
ketmar
October 28, 2014
No. Really. I'm serious.

https://github.com/Hackerpilot/dfix

dfix is a tool for automatically upgrading older D syntax to the newer style.

* Updates old-style alias syntax to new-style
* Fixes implicit concatenation of string literals
* Automatic conversion of C-style array declarations and parameters to D-style.
* Upgrades code to comply with DIP64 if the --dip64 switch is specified. (You
  probably don't want to use this)
* Upgrades code to comply with DIP65 unless the --dip65=false switch is specified.
October 28, 2014
On Tuesday, 28 October 2014 at 01:29:32 UTC, Brian Schott wrote:
> No. Really. I'm serious.
>
> https://github.com/Hackerpilot/dfix
>
> dfix is a tool for automatically upgrading older D syntax to the newer style.
>
> * Updates old-style alias syntax to new-style
> * Fixes implicit concatenation of string literals
> * Automatic conversion of C-style array declarations and parameters to D-style.
> * Upgrades code to comply with DIP64 if the --dip64 switch is specified. (You
>   probably don't want to use this)
> * Upgrades code to comply with DIP65 unless the --dip65=false switch is specified.

Awesome, would be nice if it was included with the default install for 2.067+
October 28, 2014
Brian Schott:

> https://github.com/Hackerpilot/dfix

Sounds like a very good start :-)

Bye,
bearophile
October 28, 2014
Good work, man.

Atila

On Tuesday, 28 October 2014 at 01:29:32 UTC, Brian Schott wrote:
> No. Really. I'm serious.
>
> https://github.com/Hackerpilot/dfix
>
> dfix is a tool for automatically upgrading older D syntax to the newer style.
>
> * Updates old-style alias syntax to new-style
> * Fixes implicit concatenation of string literals
> * Automatic conversion of C-style array declarations and parameters to D-style.
> * Upgrades code to comply with DIP64 if the --dip64 switch is specified. (You
>   probably don't want to use this)
> * Upgrades code to comply with DIP65 unless the --dip65=false switch is specified.

October 28, 2014
Thank you very much Brian...
October 29, 2014
On 10/27/14 6:29 PM, Brian Schott wrote:
> No. Really. I'm serious.
>
> https://github.com/Hackerpilot/dfix
>
> dfix is a tool for automatically upgrading older D syntax to the newer
> style.
>
> * Updates old-style alias syntax to new-style
> * Fixes implicit concatenation of string literals
> * Automatic conversion of C-style array declarations and parameters to
> D-style.
> * Upgrades code to comply with DIP64 if the --dip64 switch is specified.
> (You
>    probably don't want to use this)
> * Upgrades code to comply with DIP65 unless the --dip65=false switch is
> specified.

Cool! Is it idempotent if ran twice? -- Andrei
October 29, 2014
On Wednesday, 29 October 2014 at 02:10:09 UTC, Andrei Alexandrescu wrote:
> Cool! Is it idempotent if ran twice? -- Andrei

It should be. If you find a case where running dfix on the output of dfix causes a change, please file an issue on Github.

October 29, 2014
On Tuesday, 28 October 2014 at 01:29:32 UTC, Brian Schott wrote:
> No. Really. I'm serious.
>
> https://github.com/Hackerpilot/dfix
>
> dfix is a tool for automatically upgrading older D syntax to the newer style.
>
> * Updates old-style alias syntax to new-style
> * Fixes implicit concatenation of string literals
> * Automatic conversion of C-style array declarations and parameters to D-style.
> * Upgrades code to comply with DIP64 if the --dip64 switch is specified. (You
>   probably don't want to use this)
> * Upgrades code to comply with DIP65 unless the --dip65=false switch is specified.

Very Cool! Please register in code.dlang.org.

FrankLike
October 29, 2014
On Tue, 28 Oct 2014 01:29:30 +0000
Brian Schott via Digitalmars-d-announce
<digitalmars-d-announce@puremagic.com> wrote:

> No. Really. I'm serious.
> 
> https://github.com/Hackerpilot/dfix
> 
> dfix is a tool for automatically upgrading older D syntax to the newer style.
> 
> * Updates old-style alias syntax to new-style
> * Fixes implicit concatenation of string literals
> * Automatic conversion of C-style array declarations and
> parameters to D-style.
> * Upgrades code to comply with DIP64 if the --dip64 switch is
> specified. (You
>    probably don't want to use this)
> * Upgrades code to comply with DIP65 unless the --dip65=false
> switch is specified.
great! haven't tried it yet, but it's great that we now have such tool.


October 29, 2014
On 10/28/2014 09:07 AM, Daniel N wrote:
> Awesome, would be nice if it was included with the default install for
> 2.067+

It says 0.1.x, maybe when it's over 0.5.x :).
In any case I'm really glad to see this moving forward.