Article View: comp.windows.interviews
Article #778Re: List Problems
From: Jim Thrasher
Date: Tue, 06 Oct 1992 16:48
Date: Tue, 06 Oct 1992 16:48
65 lines
2542 bytes
2542 bytes
> From daemon@interviews.Stanford.EDU Tue Oct 6 08:40 PDT 1992
> Date: Tue, 6 Oct 92 08:25:33 PDT
> From: janin@espresso.boeing.com (Adam Janin 5-3545)
> To: interviews@interviews.stanford.edu
> Subject: Re: List Problems
>
> > 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); <<<<
>
In list.c and list.h, the macros declarePtrList and implementPtrList are also
available. I've been using them successfully with Solaris 2.0.1 C++ compiler:
declarePtrList(BlockList, Block); // In .h file
......
implementPtrList(BlockList, Block); // In .cc file
- 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:
<9210061648.AA03228@newbirth.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!spool.mu.edu!agate!stanford.edu!newbirth.eng.sun.com!thrasherShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!spool.mu.edu!agate!stanford.edu!newbirth.eng.sun.com!thrasher From: thrasher@newbirth.eng.sun.com (Jim Thrasher) Newsgroups: comp.windows.interviews Subject: Re: List Problems Message-ID: <9210061648.AA03228@newbirth.Eng.Sun.COM> Date: 6 Oct 92 16:48:49 GMT Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Lines: 65