comparing pointers passed to and returned from funcs

Bekenn leaveme at alone.com
Tue Mar 1 20:27:40 PST 2011


On 3/1/2011 4:12 PM, bearophile wrote:
> Bekenn:
>
>> I'd remove those parens; you don't want people modifying TRUE or FALSE.
>
> Please, show me working code that implements your idea :-)
>
> Bye,
> bearophile

Here you go; I only changed the one line.  Compiles and works just fine 
in dmd 2.051.

	const Foo* TRUE, FALSE;
instead of
	const(Foo)* TRUE, FALSE;


More information about the Digitalmars-d-learn mailing list