Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 3 and Version 4 of PythonChallenge1Native

Show
Ignore:
Author:
gim (IP: 83.29.218.119)
Timestamp:
07/25/07 11:31:34 (17 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonChallenge1Native

    v3 v4  
    88 
    99void main () { 
    10         char[] text = ""
     10        char[] text = "".dup
    1111 
    1212        foreach (inout char letter; text) { 
    2727{{{ 
    2828#!d 
    29         char[] text = ""
     29        char[] text = "".dup
    3030}}} 
    3131 
    3232The source text from the challenge page should be put between the quotes. 
     33dup is used because on Linux string literals are read-only. 
    3334 
    3435{{{