[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Can you explain again about how to use new collections classes along si
From: |
Paul E Johnson |
Subject: |
Can you explain again about how to use new collections classes along side Swarm collections? |
Date: |
Fri, 20 Oct 2000 16:37:24 -0500 |
I've been tinkering again with my tree-based collections class and I run
into this problem. I run into the problem of name space clashes between
my methods that use the same names as collections in the Swarm
collections, methods like "getCount" "getFirst". One side-effect of the
gcc in RH7 seems to be more harrassment about duplication of methods.
Maybe I just never noticed them before, but I don't think so.
If I could create my new class AVLTree as a from Collection_any, this
would not happen, but there is some voodoo in Swarm blocking me from
subclassing from it.
I have found that one way to solve this problem is to explicitly type
(or declare Protocol of) every collection created, except this cramps my
style in a few places where I want a method to receive any of the swarm
collections, not a particular one.
I thought there was a way to circumvent the blockade on inheriting from
Collection_any, but I can't find it.
Have a nice day.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Can you explain again about how to use new collections classes along side Swarm collections?,
Paul E Johnson <=