]> gitweb.factorcode.org Git - factor.git/commitdiff
io.streams.memory: use constructor syntax.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 29 Apr 2014 20:20:03 +0000 (13:20 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 29 Apr 2014 20:20:03 +0000 (13:20 -0700)
core/io/streams/memory/memory.factor

index 142dd7a07ff02e0fd9b9de476fffdaaefe3f1b72..88e2ccfafb979d8d4904d27a270d85f3462251e5 100644 (file)
@@ -5,12 +5,11 @@ IN: io.streams.memory
 
 TUPLE: memory-stream alien ;
 
-: <memory-stream> ( alien -- stream )
-    memory-stream boa ;
+C: <memory-stream> memory-stream
 
 INSTANCE: memory-stream input-stream
 
-M: memory-stream stream-element-type drop +byte+ ;
+M: memory-stream stream-element-type drop +byte+ ; inline
 
 M: memory-stream stream-read1
     [ 1 over <displaced-alien> ] change-alien drop