M
Michael DOUBEZ
Julián Albo a écrit :
It is not saying something it is seeing what the well known libraries
do(blitz,newmat,GSL...). Though I concede after reading Noah Robert's
reply that there are some legacy code issue in the case of representing
2D array (not matrices). I stand corrected in this case.
?
You puting some intentions behind what I say ?
I don't pretend it is not good enough if it is what you want.
"Do what you must" overrides any FAQ or general design.
I don't pretend to see all cases and the FAQ doesn't either (from my
reading and my opinion again).
Michael said:What I mean is that a well designed Matrix interface (in legacy code or
C or whatever you think might have used it) would have used a
function/define call and not a direct access to memory in the [][] (snip)
The consensus is not built on what a few people might say but on what is
effectively used in real life.
Interesting point. You say that everyone that uses [ ] [ ] would have used
another way. Then the consensus will not be based in this, because is just
what you say.
It is not saying something it is seeing what the well known libraries
do(blitz,newmat,GSL...). Though I concede after reading Noah Robert's
reply that there are some legacy code issue in the case of representing
2D array (not matrices). I stand corrected in this case.
In essence, all you say is that your position is right because your opinions
are more importants that any other.
?
You puting some intentions behind what I say ?
And the point is not about which syntax can give faster results or about
what is more used in certain libraries, is about not discarding one as
always bad without good reasons to prove such strong claim.
And another point to think about: the [ ] [ ] can not be implemented
directly as a function just because composite operators ("The Design an
Evolution of C++", 11.6.3) were not included in the language because lack
of time to evaluate his real usefulness. Given that in all this years
nothing has provided a solid evidence in favor of the reevaluation of that
feature, we must assume that the proxy classes approach is good enough.
I don't pretend it is not good enough if it is what you want.
"Do what you must" overrides any FAQ or general design.
I don't pretend to see all cases and the FAQ doesn't either (from my
reading and my opinion again).