void foo(ref int); void function(int) fp; fp = cast(typeof(fp)) foo; /// is it safe???
But sometimes ref becomes a part of type. For example "void
delegate(ref int)" and "void delegate(int)" are different types.
Is it possible to cast from one to another safely? For example:
- template ref parameter Jack Applegame
- Re: template ref parameter Jonathan M Davis
- Re: template ref parameter Jack Applegame
- Re: template ref parameter Jonathan M Davis
- Re: template ref parameter bearophile
- Re: template ref parameter Jack Applegame
- Re: template ref parameter Jonathan M Davis
- Re: template ref parameter Jack Applegame
- Re: template ref parameter Jack Applegame
- Re: template ref parameter Regan Heath
- Re: template ref parameter Regan Heath
- Re: template ref parameter Regan Heath
- Re: template ref parameter Jack Applegame