[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

non-destructive option parser?

Kyle Schmitt

4/24/2008 9:52:00 PM

From playing with optionparser today, it appears to be a destructive
tokenizer, albeit a really cool one. I was just wondering if there is
some sort of non-destructive versions of it?

Thanks,
Kyle

2 Answers

Ken Bloom

4/25/2008 12:08:00 AM

0

On Thu, 24 Apr 2008 16:51:59 -0500, Kyle Schmitt wrote:

> From playing with optionparser today, it appears to be a destructive
> tokenizer, albeit a really cool one. I was just wondering if there is
> some sort of non-destructive versions of it?
>
> Thanks,
> Kyle

OptionParser#parse! is destructive, OptionParser#parse is nondestructive



--
Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu...

Kyle Schmitt

4/25/2008 2:08:00 PM

0

I am so dense sometimes.

Thanks.

On Thu, Apr 24, 2008 at 7:10 PM, Ken Bloom <kbloom@gmail.com> wrote:
>
> On Thu, 24 Apr 2008 16:51:59 -0500, Kyle Schmitt wrote:
>
> > From playing with optionparser today, it appears to be a destructive
> > tokenizer, albeit a really cool one. I was just wondering if there is
> > some sort of non-destructive versions of it?
> >
> > Thanks,
> > Kyle
>
> OptionParser#parse! is destructive, OptionParser#parse is nondestructive
>
>
>
> --
> Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
> Department of Computer Science. Illinois Institute of Technology.
> http://www.iit.edu...
>
>