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 :12AB9
Rat|Num # 18.2 or :853.07 or 4/3
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 would use
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?
// Carl
* 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;