Interface class in Squeak
Ramon Leon
rleon at insario.com
Mon Jun 6 23:07:49 UTC 2005
It's been done, but it's non standard, Smalltalk is a dynamic language,
interfaces are really for manifest typed languages. To put it simply,
every method in smalltalk is it's own interface, if two method
signatures match, then they are compatible, nothing more is necessary.
________________________________
From: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] On Behalf Of
Hoang Hao
Sent: Monday, June 06, 2005 4:03 PM
To: The general-purpose Squeak developers list
Subject: Re: Interface class in Squeak
Like in Java, there is a way to create an Interface. public
interface Constants {...}. There must be a way to create an Interface
for Squeak. Please let me know.
Thanks,
Hoang Hao
Bert Freudenberg <bert at impara.de> wrote:
Am 06.06.2005 um 23:46 schrieb Hoang Hao:
> Can anyone show me how to create an interface class
for Squeak?
Object subclass: #Interface
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'SCNR'
(if this is not what you had in mind, please be a bit
more specific).
- Bert -
________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news & more. Check it
out!
<http://us.rd.yahoo.com/evt=32661/*http://discover.yahoo.com/mobile.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050606/d7be4129/attachment.htm
More information about the Squeak-dev
mailing list
|