From: Urabe Shyouhei Date: 2010-07-09T13:20:18+09:00 Subject: [ruby-core:31146] Re: Why is there no standard way of creating a String from a char *? (2010/07/09 7:04), Nikolai Weibull wrote: > Hi! > > Why is there no standard way of creating a String from a char *? All > the rb_str_new* functions take a const char * and copy it. I would > like a function that would create a String from a char *, that is, > without copying it. Because there is GC. You can't say if a string content should be freed or not when you allow such creation. If you need a non-copying region of a memory that should not be called a String.