From 936b9179ed6573cd12b7bc0f4f03f7dff264a2bb Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Tue, 6 Nov 2018 06:26:34 +0000 Subject: [PATCH] restored some sample moo code files --- moo/kernel/Http.moo | 4 ++-- moo/kernel/Mill.moo | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/moo/kernel/Http.moo b/moo/kernel/Http.moo index cb54ced..ff166d5 100644 --- a/moo/kernel/Http.moo +++ b/moo/kernel/Http.moo @@ -421,7 +421,7 @@ class MyObject(Object) [ | ss | httpd start: %( - ## SocketAddress fromString: ('[::]:' & base_port asString), + SocketAddress fromString: ('[::]:' & base_port asString), SocketAddress fromString: ('0.0.0.0:' & (base_port + 1) asString) ). @@ -463,7 +463,7 @@ httpd connect: addr. [ | ss | httpd start: %( - ## SocketAddress fromString: '[::]:7777', + SocketAddress fromString: '[::]:7777', SocketAddress fromString: '0.0.0.0:7776' ). diff --git a/moo/kernel/Mill.moo b/moo/kernel/Mill.moo index 98af232..21bcca9 100644 --- a/moo/kernel/Mill.moo +++ b/moo/kernel/Mill.moo @@ -84,7 +84,6 @@ class MyObject(Object) [Exception hash dump] ensure: ['xxxx' dump]. ] on: Exception do: [:ex | ('Exception caught - ' & ex asString) dump ].*) -(* ffi := FFI new: '/lib64/libc.so.6'. if (ffi isError) { @@ -97,7 +96,7 @@ class MyObject(Object) (ffi call: #printf signature: 's|iis)i' arguments: #(S'A=>%d B=>%d Hello, world %s\n' 1 2 'jump down')) dump. ffi close. }. -*) + (('abcd' == 'abcd') ifTrue: [1] ifFalse: [2]) dump. }