delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/21/16:21:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 21 Nov 2003 13:21:00 -0800
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: "Randy W. Sims" <RandyS AT ThePierianSpring DOT org>
Cc: Nick Ing-Simmons <nick DOT ing-simmons AT elixent DOT com>, cygwin AT cygwin DOT com,
perl5-porters AT perl DOT org, module-build-general AT lists DOT sourceforge DOT net
Subject: Re: [Module::Build] Re: Cwd::cwd() bug??? on Cygwin
Message-ID: <20031121212059.GA2236@efn.org>
Mail-Followup-To: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>,
"Randy W. Sims" <RandyS AT ThePierianSpring DOT org>,
Nick Ing-Simmons <nick DOT ing-simmons AT elixent DOT com>, cygwin AT cygwin DOT com,
perl5-porters AT perl DOT org, module-build-general AT lists DOT sourceforge DOT net
References: <3FAF853D DOT 4000202 AT urth DOT org> <3FB00F47 DOT 10400 AT ThePierianSpring DOT org> <3FB0ACC8 DOT 6030402 AT urth DOT org> <3FB30BB3 DOT 10405 AT ThePierianSpring DOT org> <3FB50640 DOT 2010908 AT urth DOT org> <3FB55A73 DOT 5060806 AT ThePierianSpring DOT org> <3FB64CB5 DOT 4060802 AT ThePierianSpring DOT org> <3FBD695A DOT 9020307 AT ThePierianSpring DOT org> <20031121110334 DOT 3098 DOT 7 AT llama DOT elixent DOT com> <3FBDF54F DOT 2080808 AT ThePierianSpring DOT org>
Mime-Version: 1.0
In-Reply-To: <3FBDF54F.2080808@ThePierianSpring.org>
User-Agent: Mutt/1.4i
Organization: bs"d

On Fri, Nov 21, 2003 at 06:21:51AM -0500, "Randy W. Sims" <RandyS AT ThePierianSpring DOT org> wrote:
> >>># test.pl
> >>>package MyModule;
> >>>use Module;
> >>>use base 'Module';
> >>>use Cwd;
> >
> >
> >If you moved that above the use Module line then when Module.pm 
> >was compiled it would know Cwd::cwd was a function.
> 
> Tried that too. Removing it does work though, but that's not a solution; 
> it's not reasonable to tell clients that subclass your library not to 
> 'use Cwd'.

If your class provides a method foo(), it is reasonable to tell those who
subclass that defining a sub foo or importing one from elsewhere
into their class will override the base method foo().   

> I'm having a hard time grasping the order in which perl is interpreting 
> this. What is desired is that $p->cwd() call Module::cwd() which should 
> then forward the call to Cwd::cwd(). But no matter how I rearrange 
> things I can't coax the behavior I want.
> 
> I'm missing something simple here; I know it...

use Cwd (); ??

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019