From: google@... (Tom Payne) Date: 2003-01-31T03:43:08+09:00 Subject: Re: Aliasing class methods Gavin Sinclair wrote in message news:<24926588553.20030129113037@soyabean.com.au>... > On Wednesday, January 29, 2003, 4:22:14 AM, Tom wrote: > > I'd like to override File.open so that it automatically searches for a > > file in a list of include paths. I'm trying to use alias, but I can't > > get it to work. How to I do it, please? My code to date is: > > If I were you, I wouldn't be redefining such an important method, at > least not without damn good reason. I see no reason not to simply add > your own: Guy & Gavin, thanks for the answer. Gavin, I agree that it's generally a Bad Idea to override important methods like File.open. The specific behaviour I wanted in this case was to cause some third-party code to search for files in a number of directories, without touching the third party code. I'm writing a LaTeX build system where input files can reside in any directories listed in the TEXINPUTS environment variable. Cheers, Tom