[Rant] Dir[...] vs. sys[...]

Kevin Burge kevin.burge at systemware.com
Fri Sep 22 17:19:35 EDT 2006


sys[] returns a file list object, which delays resolution until the file 
names are actually retrieved from the file list.

Dir[] is executed and resolved immediately.

Russel Winder wrote:
> Does anyone have a quick answer to the trade-offs of using:
>
> Bits = sys[ 'bibliographies/*.bib' ] + sys[ 'sections/*.ltx' ]
>
> rather than:
>
> Bits = Dir[ 'bibliographies/*.bib' ] + Dir[ 'sections/*.ltx' ]
>
> in Rantfiles?
>
> Thanks.
>  
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> make-cafe mailing list
> make-cafe at rubyforge.org
> http://rubyforge.org/mailman/listinfo/make-cafe

http://www.systemware.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/make-cafe/attachments/20060922/56f64b71/attachment.html 


More information about the make-cafe mailing list