Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Re: The world is not object oriented

by hardburn (Abbot)
on Jan 02, 2004 at 17:45 UTC ( #318368=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: The world is not object oriented
in thread The world is not object oriented

All languages like java, php, perl, c++ and even c do, is dictate how OOP can and can't be usd.

No, they provide the syntax for doing OOP. Java, for instance, allows you to make a class definition that is nothing more than publically-accessible attributes. Such a class uses Java's object syntax, but it isn't really an object. It's a data structure. If what you need is a data structure, that's fine, but don't call it an object just because it's syntax makes it look like one.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated


Comment on Re: Re: Re: Re: The world is not object oriented
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://318368]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2015-07-02 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls