[PEAK] Self-bootstrapping generic functions

Kevin Dangoor dangoor at gmail.com
Wed Sep 6 06:47:28 EDT 2006


On Sep 6, 2006, at 12:31 AM, Phillip J. Eby wrote:

> The net result is that any generic function that needs to be called  
> during its own rebuild or regeneration (by whatever convoluted  
> path) will simply use its last valid definition to do so.  And,  
> that "last valid definition" can include a default implementation  
> written as a non-generic function, which is fairly key to  
> bootstrapping the core itself.  That is, I can write a few  
> functions that contain isinstance() tests or simple delegation to  
> object attributes, and that should be sufficient to get the most  
> fundamental operations working in skeletal form (e.g. just enough  
> to do type-only dispatching).

Neat. You're implementing MVCC for Python code :)

Kevin



More information about the PEAK mailing list