ndslice of an array structure member?

Jay Norwood via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 21 18:47:35 PST 2015


On Tuesday, 22 December 2015 at 01:13:54 UTC, Jack Stouffer wrote:
> The problem is that t3 is slicing a1 which is a dynamic array, 
> which is a range, while t4 is trying to slice a static array, 
> which is not a range.

ok, thanks.  I lost track of the double meaning of static ... I 
normally think of static as variables with static preceding the 
type, allocated at start-up, but in this case it refers to 
structure members that will have a fixed size after the 
allocation.



More information about the Digitalmars-d-learn mailing list