Rb_scan_args question

I swear, I can read the API documentation! No, really! :stuck_out_tongue:

I’ve been doing that wrong for about a year now. :frowning:

Thanks Guy.

Dan

···

-----Original Message-----
From: ts [mailto:decoux@moulon.inra.fr]
Sent: Wednesday, October 08, 2003 7:42 AM
To: ruby-talk@ruby-lang.org
Cc: ruby-talk@ruby-lang.org
Subject: Re: rb_scan_args question

rb_scan_args(argc,argv,“12”,&arg1,&arg2);

one mandatory, 2 optionals i.e.

def tt(a, b = nil, c = nil)
end

Guy Decoux