|
From: Ioannis V. <iv...@em...> - 2003-06-09 03:09:41
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Luigi Santillo
> Sent: Sunday, June 08, 2003 9:15 AM
> To: 'Dev-Cpp-Users'
> Subject: Re: [Dev-C++] Single Linked List-IV
>
>
> On Sat, Jun 07, 2003 at 09:38:34PM +0200, Per Westermark wrote:
> > [...]
> >
> > I know it's a bit extra noisy with dual indirection, but
> since the code
> > is C and not C++, slstore() can't take references to pointers.
> >
> > /Per W
>
> Probably, he could have avoided the double indirection using
> something like:
>
> struct slist
> {
> struct address *start;
> struct address *last;
> };
>
> so that a pointer to "struct slist" would be used, still allowing
> all changes to "start" and "last" to be made.
And why use such tricks in the first place and not single pointers?
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
|