of course, this is also another way - and a very good one. The top-level aliases should exist only in the compatibility mode, the abs/ceil etc. functions should be placed either in Math or in POSIX (as they belong logically to the former and are defined in the latter as the standard) and aliased to either of them. All of these provide a very comfortable environment to the user/programmer. And, of course, as you say the POSIX module should contain also the optional POSIX parts, as defined by the standard, which might not exist on every POSIX-compliant system.
/ Marek Habersack (Grendel)
Previous text:
2002-09-04 13:01: Subject: argv[0]?
Out of curiosity, why has it always been suggested to move functions to the POSIX module? I think it would be better to have the POSIX module as some kind of META-module which contains all POSIX-things implemented in Pike, but as aliases for the proper pike functions when such are available. Eg. if the toplevel namespace is cleaned up, the most logical place to på math-function would be a Math module, but this does not imply that the functions cannot exist in the POSIX module too. The POSIX module should of course also include the non-portable POSIX stuff which ought only to exist in that module.
/ Mikael Brandström (ogg! ogg! ogg!)