[aspectc-user] replacing variables declarations in AspectC++.
Olaf.Spinczyk at informatik.uni-erlangen.de
Thu Aug 26 14:54:53 CEST 2004
Toni Soueid wrote:
> I have some source code that contains a lot of
> variable declarations of a predefined type say for
> example Type1.
> So my code is cluttered with statements like :
> Type1 a;
> Type1 b;
> etc ...
> I would like to replace Type1 variables with Type2
> variables. Instead of doing it manually, I thought
> this type of action is suitable to be put in an
> I need to know first if this is possible in AspectC++
> ? and in case this is possible, how can it be done ?
There is no language mechanism in AspectC++ that would allow you to
replace Type1 with Type2 in your whole program. The only thing you can
do is to modify Type1 by using introductions of attributes, functions,
or baseclasses. Your task sounds more like refactoring than like AOP.
More information about the aspectc-user