From owner-freebsd-current Fri May 26 9:59:48 2000 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 6097D37B660; Fri, 26 May 2000 09:59:39 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p03-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.132]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id BAA06827; Sat, 27 May 2000 01:59:36 +0900 (JST) Message-ID: <392E9FFB.507BB55E@newsguy.com> Date: Sat, 27 May 2000 01:02:03 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Mike Smith Cc: Poul-Henning Kamp , FreeBSD-current Subject: Re: HEADS UP Re: cvs commit: src/crypto/openssh/pam_ssh pam_ssh.c src/gnu/usr.bin/binutils/gdb freebsd-uthread.c src/include mpool.h src/lib/libc/net name6.c src/lib/libc_r/uthread pthread_private.h uthread_file.c src/lib/libncp ncpl_rcfile.c src/lib/libstand if_ether.h ... References: <200005252326.QAA02413@mass.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > > >I objected to a recent commit hiding the fact that this is > > >"(elm)->field.sle_next". Anyway, curelm must be a pointer to a struct. > > >Not just any struct; the struct must contain a "field" declared using > > >SLIST_ENTRY(). > > > > It could be an union or class as well... > > It would not be very useful if it were a union; the class issue is valid > (although you could trivially use a struct contained within a class and a > parent reference) but definitely not a good enough argument to support > the massive breakage this otherwise entails. Last I knew, the only difference between "class" and "struct" was whether the default was "public:" or "private:". Of course, C++ has changed quite a bit since then, but... -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@another.bsdconspiracy.org "Sentience hurts." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message