Ok, so now, there's more use of
pexpr <- expr;
required. However this cannot work for compact linear types at the
moment because there are no pointers to components of such types.
So assignment is still mandatory for that. Otherwise assignment
should only be used for whole variables.
Pointer calculations are much better than value calculations sometimes.
Consider
set (a, i, v)
seems nice, for setting an array. But what if you have an array of arrays
and want to set one element of one inner array?
You would have to do this:
var col = get(a, i);
set (&col, j, v);
set (&a, i, col);
Clearly:
(&a) . i . j <- v;
is more readable and more efficient.
--
john skaller
[email protected]
http://felix-lang.org
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language