how to write literals of some Perl 6 types?

2008-12-01 Thread Darren Duncan
Hello, I'm wondering how to write anonymous value literals of some Perl 6 basic types, and I didn't see mention of this in synopsis 2. Now, with some basic types, I know how to do it, examples: Bool # Bool::True Int # 42 or 0x17 or :12 Rat|Num # 18.2 or :8<53.07> or 4/3 Str

Re: S16: chown, chmod

2008-12-01 Thread Martin D Kealey
On Tue, 25 Nov 2008, Dave Whipp wrote: > Brandon S. Allbery KF8NH wrote: > > Still misunderstanding, I think. Yes, it will fail anyway, but in the > > general case you're checking to see if as a privileged process it is safe to > > operate on a given file. > > I'd actually been thinking that one w

Re: how to write literals of some Perl 6 types?

2008-12-01 Thread Carl Mäsak
Darren (>): > Bit > Blob > Set > Bag > Mapping > > How does one write anonymous value literals of those types? And I mean > directly, not by writing a literal of some other type and using a conversion > function to derive the above? Why is the latter method insufficient for your needs? // C

Re: S16: chown, chmod

2008-12-01 Thread Mark Overmeer
* Martin D Kealey ([EMAIL PROTECTED]) [081202 04:37]: > On Tue, 25 Nov 2008, Dave Whipp wrote: > > sub setstat(String|File $filename, StatBuf $stat) { > ... > if $caps.CAP_FOWNER { > # we're privileged, so it *should* just work. > POSIX::chown $filename, $stat.uid, $stat.gid; >