Return by 'ref' problems...

Artur Skawina art.08.09 at gmail.com
Fri May 4 11:51:37 PDT 2012


On 05/04/12 15:57, Manu wrote:
> Yeah I really hate this too. I'd like to see const(T) strictly enforced, considering the potential for ambiguity in other situations.
> 
> But I'm still stuck! :(
> How can I do what I need to do?

If 'auto' is not an option:

   alias ref const(S) function() FT;
   FT fp;

(it's needed for things like 'extern (C)' too)

artur


More information about the Digitalmars-d mailing list