From: Patrik Sundberg Date: 2002-01-05T01:40:00+09:00 Subject: [ruby-talk:30224] Re: [SUGGESTION] NULL check in string.c On Thu, Dec 20, 2001 at 03:58:36PM +0900, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:28974] [SUGGESTION] NULL check in string.c" > on 01/12/20, Patrik Sundberg writes: > > |I would guess that this is quite a common situation and it would be really > |easy to use this for rb_str_new2: > > rb_str_new2() should return String object only, otherwise you have to > scatter type checks everywhere. How about raising exception instead? seems like a good idea. (sorry for late reply..) -- ---------------------------------------------------------------------------. Patrik Sundberg Address: Rydsv�gen 100C, 584 31 Link�ping, Sweden | Email: ps@raditex.se || ps@radiac.mine.nu | Phone: +46 13 178567 || +46 707 602240 | .---> Applied Physics and Electrical Engineering student | |-----> Master of Science in Business Administration and Economics student | |-------> UNIX/Programming consultant | `--------------------------------------------------------------------------'