Author: Wander Nauta Created: 2010-05-17 Type: Feature
- Introduction
- Motivation
- Rationale
// Example (test?) code for try.ooc's reference PHP implementation | |
import os/Terminal | |
str := "RAINBOW FEVER" | |
Terminal setAttr(Attr bright) | |
rb: func() { | |
for (c in 0..str length()) { |
// Example wakefile | |
all: func (rockflags: ArrayList<String>) { | |
rock("entrypoint.ooc", rockflags) | |
} | |
docs: func () { | |
sh("markdown blahblah") | |
} |
--- oldindex.php 2010-06-08 17:16:40.090431965 +0200 | |
+++ index.php 2010-06-08 17:16:43.902432724 +0200 | |
@@ -1,6 +1,4 @@ | |
<?php | |
-sleep(1); | |
- | |
// Some settings | |
$tmp = "/tmp/"; |
import os/Terminal | |
import math | |
ProgressBar: class { | |
value: UInt = 0 | |
maxval: UInt = 100 | |
barwidth: UInt = 80 | |
text := "Please wait..." | |
Somedir: Hash | |
Somedir dirname: Hash | |
asdfasdf |
yajl/Yajl.ooc:170:23 [ERROR] No such function Pointer.getType() | |
if(arr get(i) getType() == ValueType MAP && !arr get(i) complete) { | |
^^^^^^^ | |
[FAIL] |
import os/Time | |
include time | |
/* Functions (don't use these) */ | |
strftime: extern func(dest: String*, maxsize: SizeT, format: String*, tm: TMStruct*) -> SizeT | |
/* Classes (use these) */ | |
CalendarTime: cover from TMStruct { |
import structs/ArrayList | |
import os/Time | |
"For vs Each: on the bench \n" println() | |
/* Prepare a thousand-item List */ | |
l := ArrayList<Int> new() | |
for (i in 0..300000) { |
Author: Wander Nauta (wandernauta)
Created: 2010-05-10
Type: Feature
Status: Draft
Licence: This ORC is released under the Creative Commons Attribution-Share Alike 3.0 License