|
Boost : |
From: Ross Smith (r-smith_at_[hidden])
Date: 2002-03-27 02:39:16
Dylan Nicholson wrote:
>
> --- Ross Smith <r-smith_at_[hidden]> wrote: > Jan Langer wrote:
> > >
> > > - is the is() function intended to replace is_...() or just an addition.
> > > in either case i like it. but we should wait until we have determined
> > > how the attribute access system works.
> >
> > I had the impression that the is_foo() vs is() forms were being
> > presented as two alternative interfaces, with one or the other to be
> > chosen after further pondering. Beman, could you clarify please?
> >
> > > - i would replace the readonly-flag by writable and readable (and also
> > > is_readonly by is_readable and is_writeable). this is much clearer.
> >
> > I would too if it was practical, but either way it's too hard to
> > implement on Unix. (is_readable() would be easy, just try to open it,
> > but is_writable() is next to impossible.)
> >
> access(filename, W_OK) == W_OK?
That gives you the access rights for your real user/group id, not your
effective user/group id -- i.e. it tells you whether the user running
the process can write to the file, not whether the calling process can.
-- Ross Smith ...................................... Auckland, New Zealand r-smith_at_[hidden] .................................................... "We need a new cosmology. New gods. New sacraments. Another drink." -- Patti Smith
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk