Re: cast macros

2021-04-18 Thread Ben Pfaff
On Tue, Apr 6, 2021 at 4:04 PM Bruno Haible wrote: > > I wrote: > > So far we have been lacking type-casts that warn for invalid use; > > it is well possible that with the PSPP macros (or with Marc's approach > > of _Generic), we can design a type-safe wrapper around gl_list.h > > Here is a simpli

Re: cast macros

2021-04-06 Thread Bruno Haible
I wrote: > So far we have been lacking type-casts that warn for invalid use; > it is well possible that with the PSPP macros (or with Marc's approach > of _Generic), we can design a type-safe wrapper around gl_list.h Here is a simplified test case: The simplest container type is a box type, that c