retro() on a `string` creates a range of `dchar`, causing array() pains

bearophile bearophileHUGS at lycos.com
Tue Apr 17 08:18:48 PDT 2012


Jakob Ovrum:

> 		return array(strippedTail);
> 	}
>
> The type of the return expression is dstring, not string.
>
> What is the most elegant way or correct way to solve this 
> friction?
>
> (Note: the function is used in CTFE)

Try "text" instead of "array".

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list