Re: class proposal 3.1

Serge Orlov <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Mark Hahn wrote:
> 1) The class is a blueprint only.

I disagree. The class is a type, a factory and a blueprint. You
should not try to mix the type with a blueprint. Imagine two
banknotes: 5 dollars and 10 dollars. Their type is designated
in English language with the word 'banknote'. Things you can do
with the word 'banknote' differ from things you can do with a
banknote. Instead there is an association between the word
banknote and a typical banknote image in your head. This idea
is captured in my proposal where attribute instance_ acts as
an association pointing to a typical instance.
Imagine a drunk man who is so drunk that he can't remember the
word banknote but still remembers typical banknote. He will
say to you "Give me that thing with a portrait". You cannot
easily understand what he's talking about unless you start
pattern search. That is a "proof" that type != blueprint :-)


  -- Serge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.