From: ts Date: 2003-04-12T01:58:00+09:00 Subject: Re: rb_str_chomp or rb_str_strip >>>>> "J" == Jim Freeze writes: J> is #chomp! called via: J> res = rb_funcall2(str, rb_intern("chomp!"), 0, 0); J> If so, is str modified or is res the new string? str is modified, res is str if chomp! was successfull or nil Like ruby :-) pigeon% ruby -e 'a = "aaa"; b = a.chomp!; p a, b' "aaa" nil pigeon% pigeon% ruby -e 'a = "aaa\n"; b = a.chomp!; p a, b; b[1]="x"; p a, b' "aaa" "aaa" "axa" "axa" pigeon% Guy Decoux