[ENH] deprecation

Brent Pinkney pinkney_b at aircom.co.za
Fri May 9 11:11:14 UTC 2003


Stephane,

I think that a #deprecated: method a la #error: is the best. This then raises a Warning exception called Deprecation.

The attached changeset includes:

1. Deprecation
2. Object>>#deprecated
3. Object>>#deprecated: aMethodSymbol
4. Warning>>#defaultAction (a wee fix to the debugger title)

Useage:

	MyClass>>#dodgyOldMethod

		self deprecated.
		self doDodgyStuff.


The user can proceed through the Warning.

Ok, how do we get this idea/policy into 3.6alpha so that everyone (not just KCP) can use it. 

Cheers

Brent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Deprecation.1.cs
Type: application/octet-stream
Size: 1417 bytes
Desc: Deprecation.1.cs
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030509/41fdbfd0/Deprecation.1.obj


More information about the Squeak-dev mailing list