Permalink
Browse files

Update candor version and cleanup examples.

  • Loading branch information...
1 parent 02c8a8b commit 9dae2b237f7640ac0925442681038f13b0581803 @creationix committed Mar 26, 2012
Showing with 7 additions and 6 deletions.
  1. +1 −1 deps/candor
  2. +4 −3 net.can
  3. +2 −2 test-objects.can
View
@@ -1,9 +1,10 @@
print = global.print
+require = global.require
+
-net = global.require('net')
// Make an echo server using the API
-server = net.createServer((client) {
+require('net').createServer((client) {
print("new client, piping data back to it")
client:pipe(client)
}):listen(8080)
-print("TCP echo server listening on port 8080")
+print("TCP echo server listening on port 8080")
View
@@ -2,9 +2,9 @@ print = global.print
p = global.prettyPrint
Object = {
- "new": (self, args...) {
+ new: (self, args...) {
obj = new self
- if (obj.initialize) obj:initialize(args...)
+ obj:initialize(args...)
return obj
}
}

0 comments on commit 9dae2b2

Please sign in to comment.