vArray[
HowManyCharactersDoYouNeedToTypeBeforeItGetsVeryAn noyingAndCostlyToConsistentlyHaveToCastToIntHaveYo uEverWrittenALotOfArrayCodeLikeIHaveInDelphiNoYouP robablyHaveNotBecauseCDoesNotHaveTheGreatArraySupp ortThatDelphiHasSoInOtherWordsYouHaveNoIdeaWhatSoE verWhatsItLikeToConstantlyHaveToRoundIndexes
] = YouGetItNow ?
Me against your "combining bits of 1.5" that idea is just stupid, why would
you even want to do that ? never... and it's confusing as well.
Since vArray[ 5.4 / 3.4 ] will normally not compile anyway ? This notation
is not
valid and therefore it's not a problem.
In my original idea I said to ignore the fraction... I think that's best
because
newbies don't understand fractions that well.. and the fractions are
probably not
that usefull anyway... You could try to write weird code like:
vArray[ (1.0 + 1/2 + 1/4 + 1/

] = vSomething;
But wouldn't you much rather write something shorter like:
vArray[ 1.7 ] =
at least .7 is easy to remember while 0.5 + 0.25 + 0.125 and so forth is
not.
Also there is nothing preventing the compiler from interpreting the above
code as:
vArray[ Float.Integer ] =
Two seperate variables... one for array indexing, one for bit indexing.
If the bit indexing is a bad idea... fine then drop it.
But at least the float idea is nice which was my original idea !

*
Bye,
Skybuck =D