Re: [PATCH] Reject non-pure decimal tuple indexes.

2021-06-25 Thread Mark Wielaard
Hi, Attached is a slightly updated version for some whitespace issues. There are spaces after the std::get and the is_pure_decimal function is now fully on one line. Cheers, Mark >From 60cb8cc43b91ff8a00be45be1106f95f161e9c8d Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 25 Jun 2021 1

[PATCH] Reject non-pure decimal tuple indexes.

2021-06-25 Thread Mark Wielaard
Tuple indexes should be pure decimal integer literals. But the parser just sees an integer literal. Fix this by introducing a new type hint CORETYPE_PURE_DECIMAL. This doesn't conflict with any existing type hints since a pure decimal doesn't have a type suffix. Introduce a new method is_pure_d