On Tue, 2006-12-05 at 02:13 -0800, Erick Tryzelaar wrote:
> skaller wrote:

> > This is just wrong, the correct signature is
> >
> >     virtual proc store: it * t;
> >
> > Whether or not a particular iterator supports storing
> > will determine whether to instantiate it under this
> > typeclass.
> 
> Ah, my mistake. Does this have sugar attached to it that mandates a 
> particular form? would that be the "*it = x" form?

Nope, you'd just have to write

        store (i,v);

Maybe that could be fixed somehow with some sugar like:

        i  <<- v;

but at present that would require a compiler mod.

Unlike C++, syntactic sugar in Felix is merely a convenience.
In C++ syntax matters because templates are based on it.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to