Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (34 sloc) 1.497 kB
5b9746a Wrote this a few days ago, but forgot to svn add.
wayland authored
1
2 =encoding utf8
3
04840a3 [Spec] treat all authors equally
lwall authored
4 =head1 TITLE
5b9746a Wrote this a few days ago, but forgot to svn add.
wayland authored
5
6 DRAFT: Synopsis 21: Calling Foreign Code
7
04840a3 [Spec] treat all authors equally
lwall authored
8 =head1 AUTHORS
5b9746a Wrote this a few days ago, but forgot to svn add.
wayland authored
9
04840a3 [Spec] treat all authors equally
lwall authored
10 Tim Nelson <wayland@wayland.id.au>
11 Larry Wall <larry@wall.org>
12
13 =head1 VERSION
14
15 Created: 27 Feb 2009
16
17 Last Modified: 27 Feb 2009
18 Version: 1
5b9746a Wrote this a few days ago, but forgot to svn add.
wayland authored
19
20 The document is a draft.
21
cf529a7 @sorear Update provenance blurbs to point at GitHub
sorear authored
22 If you read the HTML version, it is generated from the Pod in the specs
23 repository under
24 L<https://github.com/perl6/specs/blob/master/S21-calling-foreign-code.pod>
25 so edit it there in the git repository if you would like to make changes.
5b9746a Wrote this a few days ago, but forgot to svn add.
wayland authored
26
27 =head1 Overview
28
9d5a38d P6 Synopsis : ws changes - remove trailing spaces
Darren_Duncan authored
29 Unfortunately, calling foreign code properly is quite platform dependent. This means that
30 parts of the external calling conventions can't be standardised. But the parts that can
31 be standardised are specified here.
5b9746a Wrote this a few days ago, but forgot to svn add.
wayland authored
32
33 =head1 Specification
4b993cb add some X<>-es to the docs
szabgab authored
34 X<use>
5b9746a Wrote this a few days ago, but forgot to svn add.
wayland authored
35
36 The C<use> statement allows an external language to be specified in
37 addition to (or instead of) an authority, so that you can use modules
38 from other languages. The C<from> adverb also parses any additional
39 parts as short-form arguments. For instance:
40
320ca8c P6 Synopsis : with module full names, reversed canonical order of :au…
Darren_Duncan authored
41 use Whiteness:from<perl5>:name<Acme::Bleach>:auth<cpan:DCONWAY>:ver<1.12>;
42 use Whiteness:from<perl5 Acme::Bleach cpan:DCONWAY 1.12>; # same thing
5b9746a Wrote this a few days ago, but forgot to svn add.
wayland authored
43
44 use libc:from<C>;
45
46 =head1 Other Considerations
47
48 =head2 Linking to common platforms
49
50 XXX We need a discussion of how to link to some of the common platforms
51
52 =head1 Additions
53
54 Please post errors and feedback to perl6-language. If you are making
55 a general laundry list, please separate messages by topic.
56
Something went wrong with that request. Please try again.