D-etractions A real world programmers view on D

Peter Alexander peter.alexander.au at gmail.com
Sat Aug 25 16:05:19 PDT 2012


On Saturday, 25 August 2012 at 22:32:10 UTC, Jacob Carlborg wrote:
> On 2012-08-25 21:39, Walter Bright wrote:
>
>> How many IDEs can handle the C preprocessor, with token 
>> pasting and all,
>> when refactoring?
>
> 1. Any IDE based on libclang should be able to handle this. 
> Xcode 4 uses libclang.
>
> 2. The C preprocessor is no excuse to why we shouldn't have 
> good refactoring tools for D.

For (1), I think Walter is referring to something like this:


#define GLOBAL(name) g_ ## name

int GLOBAL(foo);
g_foo = 123;


I don't think XCode would allow you to right-click the g_foo and 
rename it. It's not possible in the general case.


More information about the Digitalmars-d mailing list