From: "Berger, Daniel" Date: 2005-02-26T07:10:06+09:00 Subject: Re: Function request: rb_raisef() > -----Original Message----- > From: daz [mailto:dooby@d10.karoo.co.uk] > Sent: Friday, February 25, 2005 3:03 PM > To: ruby-core@ruby-lang.org > Subject: Re: Function request: rb_raisef() > > > > From: "Berger, Daniel" > > > Being the lazy sort that I am, I would like to be able to > do something > > like this: > > > > if(failure){ > > rb_raisef(rb_eStandardError,"Something wrong with %i on device > > %s",x,dev); } > > > > Or is this impractical? > > > IIUC, rb_raise already handles this. > > [from PickAxe I] > void rb_raise(VALUE exception, const char *fmt, ...") > Raises an exception. The given string fmt and remaining > arguments are interpreted as with printf. > > > daz Well, dangit, I thought I tried that a while back and it didn't work. Disregard. Thanks. Dan