Re: Alternative (better?) __index implementation
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Alternative (better?) __index implementation
- From: Mark Hamburg <mhamburg@...>
- Date: 2007年12月11日 08:27:40 -0800
I've wanted a way to do this in Lightroom's class system. We optimize for
the case where a class has no getters or setters, but most of the classes
have them. The solution I'd been considering was to add an extra parameter
to the index function giving the base table. I like Rici's solution,
however.
Mark