Skip to content

Commit

Permalink
Port :l from alpha.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Mar 8, 2010
1 parent d928a86 commit 45b806a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/builtins/Str.pir
Expand Up @@ -236,6 +236,17 @@ These return various information about the file.
.return ($P0)
.end

.sub ':l' :method :multi(_)
.local string filename
filename = self

.local pmc file
file = root_new ['parrot';'File']

$I0 = file.'is_link'(filename)
.return ($I0)
.end

=back

=head2 Functions
Expand Down

0 comments on commit 45b806a

Please sign in to comment.