How would this take into account stuff like this:

   sysopen(HANDLE, "/etc/motd", O_RDWR|O_CREAT, 0644);

The "O_RDWR|O_CREAT" part is what I'm talking about here. This is a
constant w/o suffix. We'll either have to:

   1. Change it to $O_RDWR|$O_CREAT or $O{RDWR}|$O{CREAT}
      Maybe for errors us $E{AGAIN} and so on?

   2. Make special exceptions for "special" constants

I'd *definitely* prefer #1, although we do run the risk of confusing
some C folks. Not that that should stop us, but just something to think
about. The %O and %E hashes might be kind of neat - you could check out
all the supported options and errors just by walking a hash with a short
C-esque name. Plus the top-level namespace is much cleaner.

-Nate

Reply via email to