Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Ten Things Every Java Programmer Should Know About Ruby
Lothar Scholz
1/29/2005 6:24:00 PM
Hello PA,
P> On Jan 29, 2005, at 18:13, Navindra Umanee wrote:
>> What is the point of strong typing then?
P> Pig aPig = Pig.new()
P> Bird aBird = Bird.new()
P> aFlyingPig = (Bird) aPig
P> Doesn't make it so.
A Bird is a Bird if it can "drink" and if it can "eat".
Then isn't the typecast maybe correct ?
--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz
http://www.ru...
CTO Scriptolutions Ruby, PHP, Python IDE 's
1 Answer
Petite Abeille
1/29/2005 6:30:00 PM
0
On Jan 29, 2005, at 19:23, Lothar Scholz wrote:
> A Bird is a Bird if it can "drink" and if it can "eat".
> Then isn't the typecast maybe correct ?
It could indeed be perfectly correct if Pig is derived from Bird. Then
you could easily have flying pigs.
I would love to see such taxonomy though 8^)
Cheers
--
PA, Onnay Equitursay
http://alt.text...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Ten Things Every Java Programmer Should Know About Ruby
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password