Message376602
> Well, since the extra code will be autogenerated, guess it wouldn't be much problematic.
It will because it means that generic functions that receive asdl_seq an need to cast aliased pointers because they will still receive asdl_seq* items and you now need to cars them to the appropriate type:
int foo(asdl_seq* my_seq) {
asdl_seq_expr* = (asdl_seq_expr*)my_seq
}
So you will end up with what I am proposing: a flag in asdl_seq that tells you of what type it is. |
|
Date |
User |
Action |
Args |
2020-09-08 20:57:07 | pablogsal | set | recipients:
+ pablogsal, gvanrossum, rhettinger, lys.nikolaou, BTaskaya |
2020-09-08 20:57:07 | pablogsal | set | messageid: <1599598627.67.0.963042310612.issue41746@roundup.psfhosted.org> |
2020-09-08 20:57:07 | pablogsal | link | issue41746 messages |
2020-09-08 20:57:07 | pablogsal | create | |
|