public
Description: Reia is a Ruby/Python-like language for BEAM, the Erlang VM
Homepage: http://reia-lang.org
Clone URL: git://github.com/tarcieri/reia.git
Implement String#to_binary
Tony Arcieri (author)
Mon Aug 25 00:50:55 -0700 2008
commit  d02155c94cb431b39c23fa816e8bf2a6d71d8da3
tree    0eee0b58c4dfc8ad66813defe5c8db416850c604
parent  29a091f9a10296127999e808c92d36f669703c33
...
18
19
20
 
 
 
 
 
21
22
23
...
18
19
20
21
22
23
24
25
26
27
28
0
@@ -18,6 +18,11 @@ funcall({string, String}, to_s, []) ->
0
 funcall({string, String}, to_list, []) ->
0
   reia_erl:e2r(binary_to_list(String));
0
   
0
+%% String#to_binary
0
+%% Cast a string explicitly to a binary
0
+funcall({string, String}, to_binary, []) ->
0
+ String;
0
+
0
 %% String#upcase
0
 %% Capitalize all letters string
0
 funcall({string, String}, upcase, []) ->

Comments

    No one has commented yet.