On 2012-01-16 21:41, Andrej Mitrovic wrote: > Ah, I completely forgot about tupleof. That could work. Originally > I've tried __traits() but it didn't work. Thanks. No problem. Although tupleof works for private and protected fields as well. Don't know if that would be a problem. -- /Jacob Carlborg