On Mon, Dec 19, 2011 at 04:47:20PM -0700, David Roe wrote:
> I think it's fine to require that objects in a category support
> weakrefs.  There are certainly categories where you might want
> integers to be the objects, but then I think that you need to wrap
> those integers in some class inheriting from CategoryObject.
> 
> Simon, where were you planning on adding this new requirement to the
> documentation?  Is there a good place in the Developer guide?

CategoryObject? In fact this class could take the responsibility of
making sure that weakref's work for all its instances (and then there
is no need to document it in much detail).

Cheers,
                                Nicolas
--
Nicolas M. ThiĆ©ry "Isil" <[email protected]>
http://Nicolas.Thiery.name/

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to