December 04, 2011 Re: Visual D 0.3.29 features C++ to D conversion wizard | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | Rainer Schuetze:
> http://www.dsource.org/projects/visuald/wiki/Tour/CppConversion There is also a command line version available for those not working with Visual Studio.
It seems a nice tool.
If I try it on this C++ code:
enum Foos { A, B };
char *Colors[] = {"red", "blue", "green"};
int main() {
return 0;
}
It outputs:
module test;
enum Foos { A, B };
char *Colors[] = {"red", "blue", "green"};
int main() {
return 0;
}
Bye,
bearophile
|
December 04, 2011 Re: Visual D 0.3.29 features C++ to D conversion wizard | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile |
On 04.12.2011 06:30, bearophile wrote:
> Rainer Schuetze:
>
>> http://www.dsource.org/projects/visuald/wiki/Tour/CppConversion
>> There is also a command line version available for those not working
>> with Visual Studio.
>
> It seems a nice tool.
>
> If I try it on this C++ code:
>
>
> enum Foos { A, B };
> char *Colors[] = {"red", "blue", "green"};
> int main() {
> return 0;
> }
>
>
>
> It outputs:
>
>
> module test;
>
> enum Foos { A, B };
> char *Colors[] = {"red", "blue", "green"};
> int main() {
> return 0;
> }
I would have expected it to convert the braces into brackets. It does not seem to work with pointer types, while if you specify "string" as a value type,
string Colors[] = {"red", "blue", "green"};
converts to
string Colors[] = ["red", "blue", "green"];
It would be nice if it could count the elements in the array.
|
December 04, 2011 Re: Visual D 0.3.29 features C++ to D conversion wizard | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | Am 03.12.2011 16:38, schrieb Rainer Schuetze:
> Should be fixed now, I've replaced the installer.
>
> I also noticed that the fonts in the dialogs look ugly on XP (I have tweaked it on Win7), I still have to figure out what fonts VS is using.
>
> On 03.12.2011 16:27, Rainer Schuetze wrote:
>> I can confirm the problem on another computer. I'll look into it...
>>
>> On 03.12.2011 16:02, Mirko Pilger wrote:
>>> i neither see the menu entry nor the command assignment, too. i'm using the vs shell 2008.
>>>
>>>
Thanks, it works now - a very nice tool !
Cheers,
Adrian.
|
Copyright © 1999-2021 by the D Language Foundation