[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] [commit] obtain / instill

On Dec 20, 2004, at 2:05 PM, Julian Rohrhuber wrote:

On Dec 19, 2004, at 10:15 AM, Julian Rohrhuber wrote:

In cases where arrays and singular objects are used together to express properies (like in quant values)

These methods are pretty bizarre.
Things that smell like this usually make me certain that there must be a better way to do it.

I mean if it's over the top, I definitely want to remove it again.

For me it was a way to have an interface between an array stored in a single slot being accessed by various methods. I guess empty slots do not cost that much really, so the better way you smell might be to keep separate slots for them.

I often wonder if I should add an instance variable to a class and I usually try to avoid it. This might be superstition.

what class is this?

	pattern_ { arg pat; this.source_(pat) }
	offset_ { arg val; quant = quant.instil(1, val) }
	offset { arg val; ^quant.obtain(1) }