[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How do I get two dimensional array access notation for my (matrix) userdata?
- From: "Patrick Donnelly" <batrick.donnelly@...>
- Date: Mon, 28 Jul 2008 19:14:54 -0600
On Mon, Jul 28, 2008 at 6:50 PM, Patrick Donnelly
> 2) Make a table with some reference in the registry with weak keys and
> strong values. Associate each vector (key) to its matrix (value). When
> all the vectors are collected then the matrix itself will be
> collectible (I would prefer this tbh; it incurs little cost compared
> to environment tables).
I'd like to add that this does mean you will have to make a vector
userdata each time unless you do create some other association (in
that way, environment tables are probably better).
"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."