This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
fragments.phtml
57 lines (43 loc) · 1.5 KB
/
fragments.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
require "shared.inc";
standard_header("12 Dylan Fragments");
function example($name, $file) {
echo "<LI><A HREF=\"fragments/" . $file . ".phtml\">" . $name . "</A>";
}
function example_and_note($name, $file, $note) {
echo "<LI><A HREF=\"fragments/" . $file . ".phtml\">" . $name . "</A>" .
" (" . $note . ")";
}
function unfinished($name) {
echo "<LI>" . $name;
}
?>
<P>The following examples show off various interesting features of
Dylan. Most of these should work just fine under recent versions of
Gwydion, and none of them rely on hypothetical external routines.
Everything but the C interfaces should work in Open Dylan, too.</P>
<P><STRONG>Basic Language Features</STRONG></P>
<UL><?php
example("Everything's a Value", "values");
example("Keyword Arguments", "keywords");
example("Multiple Values", "multiple-values");
unfinished("References & Garbage Collection");
?></UL>
<P><STRONG>Efficiency</STRONG></P>
<UL><?php
unfinished("Optional Type Declarations");
example("Limited Types", "limited-types");
?></UL>
<P><STRONG>Objects and Generic Functions</STRONG></P>
<UL><?php
example("Classes and <CODE>make</CODE>", "classes");
example("Getters and Setters are Functions", "getters-and-setters");
unfinished("Generic Functions");
?></UL>
<P><STRONG>Advanced Features</STRONG></P>
<UL><?php
unfinished("Conditions (a.k.a. Exceptions)");
example_and_note("Closures", "closures", "and interfacing to C");
example_and_note("Macros", "macros", "and interfacing to C");
?></UL>
<?php standard_footer(); ?>