Message376327
Given that using asdl_seq currently means casting from void*, we could maybe have a set of macros like asdl_seq_GET that are type specialized (there aren't many of them) and in debug mode they can check that the ->kind attribute is consistent with the specific type that the macro represents. For instance asdl_seq_GET_EXPR will check that the ->kind attribute is consistent with a valid EXPR. It will not catch all problems but it will catch almost all the typical ones in simple sequences. |
|
| Date |
User |
Action |
Args |
| 2020-09-03 22:28:38 | pablogsal | set | recipients:
+ pablogsal, gvanrossum, blarsen |
| 2020-09-03 22:28:38 | pablogsal | set | messageid: <1599172118.89.0.432689547579.issue41697@roundup.psfhosted.org> |
| 2020-09-03 22:28:38 | pablogsal | link | issue41697 messages |
| 2020-09-03 22:28:38 | pablogsal | create | |
|