[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c

Re: Dynamic indexing (multi-dimensional-indexing) (probably my most important/valuable posting up to this date

Skybuck Flying

7/2/2011 10:56:00 AM

There is ofcourse a little drawback to version 0.04, it becomes compile time
bound again because of the generic type.

The stride field/version was more runtime friendly and flexible.

None the less, the same code can be used with stride, but care most be taken
to apply the stride properly.

It does create a bit of problem... which stride to use... a,b,c or d etc...
however if assumption is that all use the same element size then that is not
a
problem, an assert could be used to check for it.

Bye,
Skybuck.