struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael <>
Subject RE: [OT] Use of Static Methods
Date Wed, 09 Jul 2003 21:36:19 GMT
Please give me code showing polymorphic behavior in Perl.  That is a new on 
on me.  I think this may be a mistaken claim.

To get polymorphic behavior, you have to have a Superclass type and a 
Subclass object and get the behavior of the Subclass, e.g.

Superclass object = new Subclass();;

This will result in the run() method returning overridden results in 
Subclass rather than the results from the Superclass.  This is critical to 
the interesting design patterns.  If Perl can do that, I have learned 
something.  Perl is not a procedural language? Amazing!

At 09:27 PM 7/9/03 +0200, you wrote:
>Just to clarify, Perl is not a procedural language !!!
>You can implement any OO features (abstraction,inheritance,polymorphisme 
>etc ...) with Perl
>-----Original Message-----
>From: David Graham []
>Sent: Wednesday, July 09, 2003 9:06 PM
>To: Struts Users Mailing List
>Subject: RE: [OT] Use of Static Methods
>--- "Paananen, Tero" <Tero.Paananen@GTECH.COM> wrote:
> > > OO programs should be made up of objects passing
> > > messages to other objects, not calling global functions.
> >
> > I would argue a Singleton is no better in this respect.
> >
> > The fact that they're instantiated into an object,
> > don't make Singletons any less "global" than static
> > methods.
>They are instantiated into objects which means you can change the specific 
>type, method implementations, etc. without the app knowing instead of 
>calling a global function.  If I wanted to do procedural programming I'd 
>be using Perl, not Java.
> >
> >       -TPP - I trim my responses, it saves bits
> >
> > -----------------------------------------
> > This email may contain confidential and privileged material for the
> > sole use of the intended recipient(s). Any review, use, retention,
> > distribution or disclosure by others is strictly prohibited. If you
> > are not the intended recipient (or authorized to receive for the
> > recipient), please contact the sender by reply email and delete all
> > copies of this message.  Also, email is susceptible to data
> > corruption, interception, tampering, unauthorized amendment and
> > viruses. We only send and receive emails on the basis that we are not
> > liable for any such corruption, interception, tampering, amendment or
> > viruses or any consequence thereof.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > For additional commands, e-mail:
> >
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>To unsubscribe, e-mail:
>For additional commands, e-mail:
>**** DISCLAIMER ****
>"This e-mail and any attachment thereto may contain information which is 
>confidential and/or protected by intellectual property rights and are 
>intended for the sole use of the recipient(s) named above.
>Any use of the information contained herein (including, but not limited 
>to, total or partial reproduction, communication or distribution in any 
>form) by other persons than the designated recipient(s) is prohibited.
>If you have received this e-mail in error, please notify the sender either 
>by telephone or by e-mail and delete the material from any computer".
>Thank you for your cooperation.
>For further information about Proximus mobile phone services please see 
>our website at or refer to any Proximus agent.
>To unsubscribe, e-mail:
>For additional commands, e-mail:


This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message