On Apr 13, 2007, at 9:04 , brian d foy wrote:

In article <[EMAIL PROTECTED]>, Brandon
S. Allbery KF8NH <[EMAIL PROTECTED]> wrote:

File tests are supposed to return something which:
- behaves as a Bool
- stringifies as a filename
- numifies as a file size or as a time, if appropriate
- propagates a stat object (obviating perl5's magic _)

Current Pugs only does the first three, sort of:  the size and time
operators return numeric, the others string, all behave appropriately
if used as booleans.

I'm not sure Pugs does that right. The file named "0" (zero) seems to

I'm not surprised; as I said, the current behavior is basically a placeholder. In the final implementation the "real" value will be the stat structure, which won't have the 0 vs. '0' ambiguity.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED] system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED] electrical and computer engineering, carnegie mellon university KF8NH

Reply via email to