www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Visual D 0.3.29 features C++ to D conversion wizard

reply Rainer Schuetze <r.sagitario gmx.de> writes:
Hi,

with the recent initiatives to create bindings to C libraries and port 
C/C++ code to D, I thought the integration into Visual D of some tools 
written some time ago could be helpful. It proved to be a bit more work 
than expected to get them in shape, but finally the C++ to D converter 
seems usable. Read more about it here: 
http://www.dsource.org/projects/visuald/wiki/Tour/CppConversion
There is also a command line version available for those not working 
with Visual Studio.

There are more changes in this release:

   * highlighting: new colors for user defined list of types (defaults 
to basic types in object.d, see 
http://www.dsource.org/projects/visuald/wiki/Tour/Editor)
   * disabled versions: fixed wrong highlighting when editing before 
conditional
   * fixed freeze in startup due to thread starting issues (probably 
only happened with more than 2 cores)
   * added C++ to D conversion wizard
   * added installation for Visual Studio 11
   * tweaked dialogs to better integrate with VS

Visual D is a Visual Studio package providing both project management 
and language services for the D programming language. It works with 
Visual Studio 2005, 2008 and 2010 as well as the free Visual Studio Shells.

The Visual D installer can be downloaded from its website at 
http://www.dsource.org/projects/visuald

Happy coding,
Rainer
Dec 03 2011
next sibling parent reply Adrian <adrian.remove-nospam veith-system.de> writes:
Am 03.12.2011 11:13, schrieb Rainer Schuetze:
 Hi,
 
 with the recent initiatives to create bindings to C libraries and port
 C/C++ code to D, I thought the integration into Visual D of some tools
 written some time ago could be helpful. It proved to be a bit more work
 than expected to get them in shape, but finally the C++ to D converter
 seems usable. Read more about it here:
 http://www.dsource.org/projects/visuald/wiki/Tour/CppConversion
Hi, I am really curious about the C++ to D converter, but I can't find a menu entry for it in the Visual D submenu. Do I have to enable something, somewhere ? best, Adrian.
Dec 03 2011
parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 03.12.2011 12:04, Adrian wrote:
 Am 03.12.2011 11:13, schrieb Rainer Schuetze:
 Hi,

 with the recent initiatives to create bindings to C libraries and port
 C/C++ code to D, I thought the integration into Visual D of some tools
 written some time ago could be helpful. It proved to be a bit more work
 than expected to get them in shape, but finally the C++ to D converter
 seems usable. Read more about it here:
 http://www.dsource.org/projects/visuald/wiki/Tour/CppConversion
Hi, I am really curious about the C++ to D converter, but I can't find a menu entry for it in the Visual D submenu. Do I have to enable something, somewhere ? best, Adrian.
Hmmm, should appear as "C++ conversion wizard" in the Visual D menu. It might be an update issue of the menu, it is cached by Visual Studio. What version of Visual Studio are you using? You should also find a command "VisualD.ConversionWizard" in the keyboard assignment dialog.
Dec 03 2011
parent reply Mirko Pilger <mirko.pilger gmail.com> writes:
i neither see the menu entry nor the command assignment, too. i'm using 
the vs shell 2008.
Dec 03 2011
next sibling parent Michal Minich <michal.minich gmail.com> writes:
On 3. 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.
I don't see it either after upgrading from previous version in vs shell 2010
Dec 03 2011
prev sibling parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
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.
Dec 03 2011
parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
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.
Dec 03 2011
next sibling parent Mirko Pilger <mirko.pilger gmail.com> writes:
 Should be fixed now, I've replaced the installer.
i can confirm this for vs shell 2008 on win xp sp3. i'll give it a shot and feed it some c++ code later this evening. thanks for your work.
Dec 03 2011
prev sibling parent Adrian <adrian.remove-nospam veith-system.de> writes:
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.
Dec 04 2011
prev sibling next sibling parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Sat, 03 Dec 2011 12:13:03 +0200, Rainer Schuetze <r.sagitario gmx.de>  
wrote:

 C++ to D converter
Step 1: Use C++ to D converter on DMD source code Step 2: Integrate ported DMD source code into Visual D for perfect semantic features Step 3: ??? Step 4: Profit! But seriously, great work! -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Dec 03 2011
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 03.12.2011 16:53, Vladimir Panteleev wrote:
 On Sat, 03 Dec 2011 12:13:03 +0200, Rainer Schuetze <r.sagitario gmx.de>
 wrote:

 C++ to D converter
Step 1: Use C++ to D converter on DMD source code Step 2: Integrate ported DMD source code into Visual D for perfect semantic features
That was also my idea 2 years ago when I wrote most of the converter, but I am no longer sure the dmd code would work so well in an IDE.
 Step 3: ???
 Step 4: Profit!

 But seriously, great work!
Thanks.
Dec 03 2011
prev sibling parent reply bearophile <bearophileHUGS lycos.com> writes:
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
Dec 03 2011
parent Rainer Schuetze <r.sagitario gmx.de> writes:
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.
Dec 03 2011