Null checks for structs and

Erik Charlebois erikcharlebois at gmail.com
Fri Mar 9 11:58:44 PST 2007


Is there a way to disable the checks for 'this == null' at the beginning of struct methods?

Similarly, is there a way to disable static array bounds checking? I'm trying to write a light weight vector class template and running into some problems with these.

Oddly, gcc isnt able to optimize away the static bounds checking even though it seems rather obvious statically comparing 0 against 2...

	xorl	%edx, %edx
	xorl	%ecx, %ecx
	cmpl	$2, %edx
	leal	0(,%ecx,4), %esi
	fstps	-28(%ebp)
	jae	L1454



More information about the Digitalmars-d mailing list