[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: [ANN] win32-file 0.1.0

Berger, Daniel

10/30/2003 4:18:00 PM

> -----Original Message-----
> From: Gavin Sinclair [mailto:gsinclair@soyabean.com.au]
> Sent: Wednesday, October 29, 2003 11:21 PM
> To: ruby-talk@ruby-lang.org
> Subject: Re: [ANN] win32-file 0.1.0
>
>
> > Hi all,
> >
> > I am happy to announce the release of win32-file
> > 0.1.0. This package provides additional methods for
> > the File class specific to the Win32 platform, mostly
> > related to file/directory attribute information.
>
> Good work.

Thanks :)

> > Synopsis
> > ========
> > require "win32/file"
> >
> > some_file = "C:\\Documents and
> Settings\\some_user\\fruitylicious.txt"
> >
> > Win32::File.attributes(some_file) # e.g. ['hidden','archive']
>
> Why not use symbols instead?

Dunno - didn't think it really mattered. Does it?

>
> > Win32::File.short_path(some_file) # "fruity~1.txt"
>
> *shudder* :)

:-P

Regards,

Dan

1 Answer

gsinclair

10/31/2003 5:29:00 AM

0

"Berger, Daniel" <djberge@qwest.com> wrote in message news:<AEB584A22DA94547847EC196AE7393BE02341D91@minntex003.interprise.com>...

> > > Win32::File.attributes(some_file) # e.g. ['hidden','archive']
> >
> > Why not use symbols instead?
>
> Dunno - didn't think it really mattered. Does it?

I thought it was axiomatic that symbols are a better conceptual fit
than strings for this kind of thing: unchanging labels. However,
other posts show there's a variety of opinion.

Gavin