class VM

Perl 6 Virtual Machine related information

class VM does Systemic { }

Built-in class for providing information about the virtual machine in which Perl 6 is running. Usually accessed through the $*VM dynamic variable.

Methods

method osname

Defined as:

multi method osname(VM:U:)
multi method osname(VM:D:)

Instance / Class method returning the name of the Operating System, as known by the configuration of the VM object / currently running virtual machine.

method precomp-ext

Instance method returning a string of the extension that should be used for precompiled files of the VM object.

method precomp-target

Instance method returning a string of the value of the compilation target that should be used when precompiling source-files with the VM object.

method prefix

Instance method returning a string of the path in which the virtual machine of the VM object is installed.

Type Graph

Type relations for VM
perl6-type-graph VM VM Any Any VM->Any Systemic Systemic VM->Systemic Mu Mu Any->Mu

Expand above chart

Routines supplied by role Systemic

VM does role Systemic, which provides the following routines:

(Systemic) method auth

Instance method returning the "auth" (as in "author" or "authority") of the object. Returns "unknown" if the "auth" could not be established.

(Systemic) method config

Instance returning a hash with object configuration information. Subject to change without notice, but can be helpful in environments where only one type of virtual machine is in use, or to find about the configuration of any other object that mixes in this role.

(Systemic) method desc

Instance method returning the "desc" (as in "description") of the VM object. Returns a Str type object if the "desc" could not be established.

(Systemic) method name

Instance method returning the name of the object.

(Systemic) method signature

Instance method returning the signature of the object. Returns a Blob type object if the signature could not be established.

(Systemic) method version

Instance method returning the version of the object as a Version object. Returns a Version object "unknown" if the version could not be established.

(Systemic) method gist

method gistSystemic:D: )

Instance method returning the name and version of the object.

say $*PERL.gist# OUTPUT: «Perl 6 (6.c)␤»

$*PERL is an object of the Perl type, which mixes in this role and thus implements this method.

(Systemic) method Str

method Str

Instance method returning the name of the object.

say $*PERL.Str# OUTPUT: «Perl 6␤»