Hi Russel, In my mind this is definitely a feature request. BigInt is just a class that wraps GMP integers so it'd be wrong for the compiler to recognize it as an integer. That said, I can certainly see the appeal for a range over BigInts and I think there's a few different ways we could approach this.
I don't think there's any existing feature requests for this, so we'd be happy for you to file one. For this sort of thing, I think a .future in our testing system would be appropriate. For more info on creating a .future see: https://github.com/chapel-lang/chapel/blob/master/doc/developer/bestPractic es/TestSystem.txt#L319-L379 Elliot >I notice that: > > new BigInt(1) .. new BigInt(10) > >results in the error: > > error: Bounds of '..' must be integers of compatible types, when > specified. > >which implies the compiler believe BigInt is not an integer. I'm happy >to post an issue, I am just wondering if this is already known so >doesn't need reporting or should be reported as a bug or a feature. > >-- >Russel. >========================================================================== >=== >Dr Russel Winder t: +44 20 7585 2200 voip: >sip:[email protected] >41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] >London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder ------------------------------------------------------------------------------ _______________________________________________ Chapel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-users
