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




____________________________________________________________________________
This email and all attachments have been electronically scanned by Kingston
Communications' email Anti-Virus service and no known viruses were detected.
____________________________________________________________________________