Changeset 39

Show
Ignore:
Timestamp:
08/18/06 13:39:18 (2 years ago)
Author:
KirkMcDonald
Message:

Iteration bugfix, doc update.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/html_doc/basics.html

    r35 r39  
    2323 
    2424<h1>The basics</h1> 
     25 
     26<h3>Installation and requirements</h3> 
     27 
     28<p>Pyd requires Python 2.4 or newer and the latest version of DMD.</p> 
     29 
     30<p>At the moment, Pyd is only supported on Windows using the <a href="http://digitalmars.com/d/index.html">DMD</a> compiler. GDC support has been written, but Pyd cannot yet be compiled with GDC. Once GDC support is available, Pyd should work on Linux. Support for Derek Parnell's Build is also planned.</p> 
     31 
     32<p>Because Pyd is still in development, it is only available via Subversion. The repository is located <a href="http://svn.dsource.org/projects/pyd/trunk">here</a>.</p> 
     33 
     34<p>Pyd installs itself as a Python package called <a href="celerid.html"><code>celerid</code></a>. Once you have downloaded the "trunk" directory, simply run <code>python setup.py install</code>, and the <code>celerid</code> directory will be created in Python's site-packages directory.</p> 
     35 
     36<h3>Module basics</h3> 
    2537 
    2638<p>The most minimal working Pyd module looks something like this:</p> 
  • trunk/infrastructure/pyd/iteration.d

    r38 r39  
    6565    auto sc = new StackContext(delegate void() { 
    6666        T t = obj; 
     67        // So we can get the variable in the enclosing function's stack frame 
     68        StackContext.yield(); 
    6769        PyObject* temp; 
    6870        // I seriously doubt I need to support up to ten (10!) arguments to the 
     
    128130        } 
    129131    }); 
     132    // Initialize the StackContext 
     133    sc.run(); 
    130134    return WrapPyObject_FromObject(sc); 
    131135}