Changeset 120 for trunk/examples

Show
Ignore:
Timestamp:
07/26/07 20:06:38 (1 year ago)
Author:
KirkMcDonald
Message:

* Pyd now requires D 2.003 or later.
* Pyd now compiles with D 2.003.
* Resolved long-standing string-copying annoyance (thanks to const).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/testdll/testdll.d

    r118 r120  
    1313} 
    1414 
    15 char[] bar(int i) { 
     15string bar(int i) { 
    1616    if (i > 10) { 
    1717        return "It's greater than 10!"; 
     
    2121} 
    2222 
    23 void baz(int i=10, char[] s="moo") { 
     23void baz(int i=10, string s="moo") { 
    2424    writefln("i = %s\ns = %s", i, s); 
    2525}