Rename member from macro

4 views
Skip to first unread message

Andrew Davey

unread,
Jul 22, 2008, 1:41:02 PM7/22/08
to nemerle-dev
Is it possible to rename a member from a macro?

Ķaмȋļ ๏ Şκaļşκȋ

unread,
Jul 22, 2008, 1:49:37 PM7/22/08
to nemer...@googlegroups.com
On Tue, Jul 22, 2008 at 7:41 PM, Andrew Davey <a.j....@gmail.com> wrote:
>
> Is it possible to rename a member from a macro?

The API was not designed for such use-case. But I guess in
BeforeTypedMembers stage you should be able to filter out some members
from member list and then add some new ones. In WithTypedMembers stage
you would need to dig deep into compiler and modify the member's name
in several maps.


--
Kamil Skalski
http://nazgul.omega.pl

Reply all
Reply to author
Forward
0 new messages