src/doc: introduce option --no-render in HTML phase.
[nit.git] / tests / example_procedural_string.nit
index a78d01f..4fbd8a9 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+#alt1 import core
+#alt1 import core::text::ropes
+
 # A procedural program (without explicit class).
 
 fun first_word(s: String): String
 do
-       var result = new Buffer
+       var result: Buffer = new FlatBuffer
+       #alt1 result = new RopeBuffer
        var i = 0
        while i < s.length and s.chars[i] != ' ' do
                result.add(s.chars[i])