list literal gotcha and suggestion

Reinier Zwitserloot reinier at zwitserloot.com
Wed Oct 7 06:40:57 PDT 2009


On 2009/07/10, at 14:40, Rémi Forax wrote:
>
> The compiler can also reject that code because it's ambiguous.


Yes - forcing you to cast it, which makes this syntax rather ugly.  
Neal specifically said that he included this in his "Casts are rarely  
neccessary" statement, but he has yet to show me how you can avoid the  
need for a cast in this situation.

  -- Reinier Zwitserloot




More information about the coin-dev mailing list