Sanity check: pithiest test for static if: "is an array of ubyte"

Andy Valencia dont at spam.me
Sun May 25 00:11:08 UTC 2025


On Saturday, 24 May 2025 at 21:58:16 UTC, H. S. Teoh wrote:
> 	static if (is(typeof(myArray) == ubyte[])) {
> 		...
> 	}

Oh!  I knew I was missing something.  Thank you to both of you 
for pointing at this.

Andy



More information about the Digitalmars-d-learn mailing list