Overload functions with no arguments?

  • Follow


Hi guys,
Anyone know if it is possible to overload a function that doesn't have an
input argument? I've got an overload function for DIR, for instance, that
works when the function takes a character argument. But what about when it
takes none at all?
Thanks,
Brett


0
Reply shoelson (825) 6/25/2004 1:31:00 PM

In article <oOVCc.510$Ny6.1352@mencken.net.nih.gov>,
 "Brett Shoelson" <shoelson@helix.nih.gov> wrote:

> Hi guys,
> Anyone know if it is possible to overload a function that doesn't have an
> input argument? I've got an overload function for DIR, for instance, that
> works when the function takes a character argument. But what about when it
> takes none at all?
> Thanks,
> Brett


Brett,

I'm pretty sure you can just put it in an @double directory.

-- 
Doug Schwarz
dmschwarz&urgrad,rochester,edu
Make obvious changes to get real email address.
0
Reply see449 (230) 6/25/2004 5:37:46 PM


"Doug Schwarz" <see@sig.for.address> wrote in message
news:see-79B763.13374525062004@news.frontiernet.net...
> In article <oOVCc.510$Ny6.1352@mencken.net.nih.gov>,
>  "Brett Shoelson" <shoelson@helix.nih.gov> wrote:
>
> > Hi guys,
> > Anyone know if it is possible to overload a function that doesn't have
an
> > input argument? I've got an overload function for DIR, for instance,
that
> > works when the function takes a character argument. But what about when
it
> > takes none at all?
> > Thanks,
> > Brett
>
>
> Brett,
>
> I'm pretty sure you can just put it in an @double directory.
>
> -- 
> Doug Schwarz
> dmschwarz&urgrad,rochester,edu
> Make obvious changes to get real email address.

That does indeed work... thanks, Doug. Hadn't thought of it.
Brett


0
Reply shoelson (825) 6/28/2004 2:41:30 PM

2 Replies
34 Views

(page loaded in 0.057 seconds)


Reply: