Re: Definition of containers.

2005-07-30 Thread Autrijus Tang
On Sun, Jul 31, 2005 at 02:00:13PM +1200, Sam Vilain wrote: > Tieing a hash would be the same as sub-classing it Sub-classing a container is exactly what tying is all about. That, and not losing the original non-tied storage inbetween ties. > Or is this merely a mechanism for the above? You can

Re: Definition of containers.

2005-07-30 Thread Sam Vilain
Autrijus Tang wrote: Containers come in two flavours: Non-tieable and Tieable. Both are typed, mutable references. There is no way in runtime to change the flavour. data Container s a = NCon (STRef s (NBox a)) | TCon (STRef s (TBox a)) A Non-tieable container is comprised of