Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!uvaarpa!mcnc!ecsgate!ecsvax!uncw!fleming From: fleming@uncw.UUCP (Chris Fleming) Newsgroups: comp.lang.c++ Subject: a=b=c=0 HOW??? Message-ID: <857@uncw.UUCP> Date: 10 Aug 90 05:17:45 GMT Distribution: usa Organization: Univ. of North Carolina at Wilmington Lines: 35 Is this how it is always done? Say we have a, b, and c all ints. a=b=c=0; Is this always: Or would someone really implement as: c=0; a=0; b=0; b=0; a=0; c=0; ? ? I ran some test with TC++ 1.0 and feel confident that it is done the "always" way rather than the "other" way. How about from the compiler writers point of view....is there a difference? Linked lists come to mind....without knowing for sure, do I say: l=l->l_next=new l_list('a',l); // Just an example or do I say: l->l_next=l=new l_list('a',l); I know the safe method: l->l_next=new l_list('a',l); l=l->l_next; Should work no matter, but..........isn't there a standard? --------------------------------------------------------------------- Chris Fleming University of NC at Wilmington {...,mcnc}!ecsvax!uncw!fleming fleming@ecsvax!uncw