Paul Eggert wrote on 2006-01-06: > Perhaps we could change progname.h so that 'program_name' is a > function that returns the program name, instead of being a global > variable.
Ouch. When things go wrong, this leads to intriguing compiler errors like "cannot call program_name as a function" or "assignment from function pointer to data pointer". Or, in case of a mismatch between .o files, just core dumps. And how would that function return the value of argv[0]? If it needs an auxiliary '[const] char *' variable, you have not won much: you have pushed the complexity back from gnulib into the developer's main program. Bruno _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib