Changeset 7 for trunk/dxmp.sxmp
- Timestamp:
- 03/10/07 10:00:34 (2 years ago)
- Files:
-
- trunk/dxmp.sxmp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dxmp.sxmp
r5 r7 1 1 $ build dxmp 2 2 Files are up to date, no build required. 3 $ cat simple.rb 4 # Example of Ruby's xmpfilter 5 1+1 # => 6 "aa".length # => 7 $ xmpfilter simple.rb 8 # Example of Ruby's xmpfilter 9 1+1 # => 2 10 "aa".length # => 2 11 $ cat simple.d 12 // Example of D's dxmp 13 int main(char[][] argv) { 14 1+1; // => 15 "aa".length; // => 16 return 0; 17 } 18 $ ./dxmp simple.d 19 // Example of D's dxmp 20 int main(char[][] argv) { 21 cast(void)(1+1); // => 2 22 cast(void)("aa".length); // => 2 23 return 0; 24 } 3 25 $ cat dxmp_testcases.d 4 26 private import std.stdio;
