On Nov 21, 9:16 am, [EMAIL PROTECTED] (Larry Wall) wrote:
> Please feel free to whack on the spec

OK, working on it.

Question: is it appropriate to P6 look&feel to have methods on
functions?

The definition of C<chown> includes the statement that it's not
available on most system unless you're superuser; and this can be
checked using a POSIX incantation. I was wondering if it would be
reasonable to provide this as a method on the chown function, so that
a user could say:

  if &chown.is_restricted {
    ...
  }
  else {
    chown $user, $group <== @files
  }

Reply via email to