Towards class deprecation…

Hi

Using the idea we got with Peter Uhnak, we know implemented using the transformation library of gustavo two new transformations:

– deprecate class: It  just compiles a “new” method raising a warning and a class method deprecated returning true. This could then improve to rename the method new if it already exist.

– rename and deprecate:  the idea here is that we want to make sure that we can rename a class and that external users get a chance to load and execute their code. For that if we have a class A, we rename it into ANewName and create an empty subclass A that we deprecate.

Let us know what you think.

Stef and Gustavo

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: