Warning: readfile(/var/www/header.html) [function.readfile]: failed to open stream: No such file or directory in /var/www/website/fragments/fragments.inc on line 6
12 Dylan Fragments: Everything's a Value
Warning: readfile(/var/www/menu.html) [function.readfile]: failed to open stream: No such file or directory in /var/www/website/fragments/fragments.inc on line 8

[ All Fragments ]

Everything's a Value

Every Dylan statement or expression returns a value. Control constructs and functions return the value of the last expression in their body.

define function absolute-value(x :: <integer>)
 => (result :: <integer>)
  if (x >= 0)
    x;
  else
    -x;
  end;
end;

Several other aspects of Dylan are visible in this example: