Menu

#7 Indexing lists with Long

open
nobody
None
5
2004-09-08
2004-09-08
No

We hacked MillScript (in MapAwareTools.java) to
support Number when indexing a List. Strictly speaking
this is wrong. We should only support indexing by
integral types i.e. Integer, Long, BigInteger, BigDecimal
(with no fractional part), and the other wrapper types
such as Short etc.

We should have a convertToInt function that is
responsible for enforing the check.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.