fixed a slight bug in parsing 'and' and 'or' in compile_basic_expression().

writing SocketStream
This commit is contained in:
hyunghwan.chung
2018-06-09 16:48:18 +00:00
parent e074607a00
commit 48bdf7df2c
3 changed files with 16 additions and 12 deletions

View File

@ -162,7 +162,7 @@ class(#pointer) Array(SequenceableCollection)
method replaceFrom: start to: stop with: replacement
{
self replaceFrom: start to: stop with: replacement startingAt: 0.
^self replaceFrom: start to: stop with: replacement startingAt: 0.
}
method replaceFrom: start to: stop with: replacement startingAt: rstart
@ -177,6 +177,16 @@ class(#pointer) Array(SequenceableCollection)
}.
}
method replaceFrom: start count: count with: replacement
{
^self replaceFrom: start to: (start + count - 1) with: replacement startingAt: 0.
}
method replaceFrom: start count: count with: replacement startingAt: rstart
{
^self replaceFrom: start to: (start + count - 1) with: replacement startingAt: rstart
}
method = anArray
{
| size i |

View File

@ -7,6 +7,7 @@
#include 'Magnitu.moo'.
#include 'Collect.moo'.
#include 'Process.moo'.
#include 'Stream.moo'.
(* -------------------------------------------------------------------------- *)
## #include 'FFI.moo'.