Sujet : Re: is it possible to have functions with 0, 1, or 2 args?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 08. Aug 2024, 00:04:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v90uhv$3dtak$9@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.159 (Vovchansk; )
On 5 Aug 2024 09:45:37 GMT, Stefan Ram wrote:
ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
>
#define NARGS(...) NARGS_(__VA_ARGS__, 5, 4, 3, 2, 1, 0)
Up top, C's totally buggin' about the diff between one argument and
zilch, 'cause that comma in "__VA_ARGS__," is always chillin'
there. We could 86 it with the fresh "__VA_OPT__(,)", but not all C
implementations are down to clown with that yet . . .
Make sure to assume the B-Boy stance when you say that.
Date | Sujet | # | | Auteur |
5 Aug 24 | is it possible to have functions with 0, 1, or 2 args? | 15 | | Mark Summerfield |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Stefan Ram |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 4 | | Stefan Ram |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 2 | | Stefan Ram |
8 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Lawrence D'Oliveiro |
11 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Tim Rentsch |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 6 | | Michael S |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 5 | | Tim Rentsch |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 4 | | Richard Harnden |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 3 | | Tim Rentsch |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 2 | | Richard Harnden |
13 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Tim Rentsch |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Stefan Ram |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Blue-Maned_Hawk |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Tim Rentsch |