Article View: comp.windows.interviews
Article #777Re: List Problems
From: Jim Thrasher
Date: Tue, 06 Oct 1992 16:38
Date: Tue, 06 Oct 1992 16:38
60 lines
2270 bytes
2270 bytes
> > I'm having some problems using the List class in InterViews 3.1 beta3.
> > In IV3.0 the following worked fine (simplified example):
> > ...
>
> Try:
>
>
> 1 class Block
> 2 {
> 3 public:
> 4 int f();
> 5 private:
> 6 int n;
> 7 };
> 8
> 9 typedef Block* Blockp; <<<<
> 10
> 11 declareList(BlockList,Blockp); <<<<
> 12 implementList(BlockList,Blockp); <<<<
>
Hi:
I'm currently using this successfully (with Sun C++ 2.0.1 - Solaris 2.0.1)
declarePtrList(BlockList,Blockp); // In the .h file
.....
implementPtrList(BlockList,Blockp); // In the .cc file
I'm using different classes, though.
-Jim Thrasher
>
> The lexical parsing of the #defines of implementList and declareList seems
> to be somewhat incompatible with pointer types. I really wish templates
> were available!!
>
>
> Hope this helps,
>
> Adam Janin
>
> ----------------------------------------------------------------------
> | Adam Janin |
> | Boeing Computer Services |
> | Advanced Computing Systems |
> | P.O. Box 24346, MS 7L-22 |
> | Seattle, WA 98124-0346 |
> | janin@espresso.boeing.com |
> | Work: (206) 865-3545 |
> | Fax: (206) 865-2966 |
> | Home: (206) 557-0615 |
> |--------------------------------------------------------------------|
> | |
> | When a fly lands on the ceiling, does it do a half roll or a |
> | half twist? |
> | |
> ----------------------------------------------------------------------
>
>
Technical Details
Message-ID:
<9210061638.AA03146@newbirth.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!agate!stanford.edu!newbirth.eng.sun.com!thrasherShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!agate!stanford.edu!newbirth.eng.sun.com!thrasher From: thrasher@newbirth.eng.sun.com (Jim Thrasher) Subject: Re: List Problems Message-ID: <9210061638.AA03146@newbirth.Eng.Sun.COM> Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Date: Tue, 6 Oct 1992 16:38:12 GMT Lines: 60