Thanks, I should have read more before asking and will try to do better on that.

I did see where the experimental implicitDeref pragma would have allowed the 
a.sort() syntax to work (I think). In the original version, without ref, a.high 
worked fine too. So I guess with this experimental pragma a.high and high(a) 
would also deref and work correctly. I'll switch to devel build today and play 
around with it. Seems like a good thing so that if an array blows through the 
stack and has to be moved to the heap, existing code referencing it doesn't 
have to be changed, though the doc comment says this only happens if the first 
arg is a ref array. Seems like it should happen anytime the array is referenced 
in a non-pointer context, but maybe that's hard for the compiler to determine.

Reply via email to