Extend vector ops to boolean operators?

Timon Gehr timon.gehr at gmx.ch
Tue Mar 6 12:35:11 PST 2012


On 03/06/2012 09:30 PM, H. S. Teoh wrote:
> It'd be really cool if I could do this:
>
> 	void func(int[] vector, int[] bounds) {
> 		assert(vector[]>= 0&&  vector[]<  bounds[]);
> 		...
> 	}
>
> Is there any reason why we shouldn't implement this?
>
>
> T
>

Comparing arrays already does lexical-style comparison (which makes sense).


More information about the Digitalmars-d mailing list