]> gitweb.factorcode.org Git - factor.git/commitdiff
allow alien.strings:alien>string to take an object with underlying>> slot
authorJoe Groff <arcata@gmail.com>
Wed, 26 Aug 2009 14:13:30 +0000 (09:13 -0500)
committerJoe Groff <arcata@gmail.com>
Wed, 26 Aug 2009 14:13:30 +0000 (09:13 -0500)
core/alien/strings/strings.factor

index c74c325726a82fa156f49d7a61c04930ed202d90..ff20b8b0333cf6f9024e5c63915aad28a31a03ef 100644 (file)
@@ -12,6 +12,9 @@ M: c-ptr alien>string
     [ <memory-stream> ] [ <decoder> ] bi*
     "\0" swap stream-read-until drop ;
 
+M: object alien>string
+    [ underlying>> ] dip alien>string ;
+
 M: f alien>string
     drop ;