in reply to Re^6: Wassercrats::Improved Volume 0, Number 0
in thread Perl::Improved Volume 0, Number 0
Yes... I've used singleton producing functions before but what's the point in that? If I say that DB->handle() returns the DBI handle or put the thing in $DB::handle, how does that differ? Consider that your function itself is a global of a kind. It is nameable by any code elsewhere in the running program just as your variable slot was.
Anyhow, Factories are for Java programmers. That's what our untyped variables are for in perl and that's an entirely different discussion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Wassercrats::Improved Volume 0, Number 0
by stvn (Monsignor) on Aug 27, 2004 at 02:09 UTC | |
by jryan (Vicar) on Aug 27, 2004 at 04:47 UTC | |
by chromatic (Archbishop) on Aug 27, 2004 at 06:14 UTC | |
by ysth (Canon) on Aug 27, 2004 at 06:56 UTC | |
by stvn (Monsignor) on Aug 28, 2004 at 02:16 UTC | |
|