Sat Dec 9 07:54:04 2023
EVENTS
 FREE
SOFTWARE
INSTITUTE

POLITICS
JOBS
MEMBERS'
CORNER

MAILING
LIST

NYLXS Mailing Lists and Archives
NYLXS Members have a lot to say and share but we don't keep many secrets. Join the Hangout Mailing List and say your peice.

DATE 2011-04-01

HANGOUT

2023-12-09 | 2023-11-09 | 2023-10-09 | 2023-09-09 | 2023-08-09 | 2023-07-09 | 2023-06-09 | 2023-05-09 | 2023-04-09 | 2023-03-09 | 2023-02-09 | 2023-01-09 | 2022-12-09 | 2022-11-09 | 2022-10-09 | 2022-09-09 | 2022-08-09 | 2022-07-09 | 2022-06-09 | 2022-05-09 | 2022-04-09 | 2022-03-09 | 2022-02-09 | 2022-01-09 | 2021-12-09 | 2021-11-09 | 2021-10-09 | 2021-09-09 | 2021-08-09 | 2021-07-09 | 2021-06-09 | 2021-05-09 | 2021-04-09 | 2021-03-09 | 2021-02-09 | 2021-01-09 | 2020-12-09 | 2020-11-09 | 2020-10-09 | 2020-09-09 | 2020-08-09 | 2020-07-09 | 2020-06-09 | 2020-05-09 | 2020-04-09 | 2020-03-09 | 2020-02-09 | 2020-01-09 | 2019-12-09 | 2019-11-09 | 2019-10-09 | 2019-09-09 | 2019-08-09 | 2019-07-09 | 2019-06-09 | 2019-05-09 | 2019-04-09 | 2019-03-09 | 2019-02-09 | 2019-01-09 | 2018-12-09 | 2018-11-09 | 2018-10-09 | 2018-09-09 | 2018-08-09 | 2018-07-09 | 2018-06-09 | 2018-05-09 | 2018-04-09 | 2018-03-09 | 2018-02-09 | 2018-01-09 | 2017-12-09 | 2017-11-09 | 2017-10-09 | 2017-09-09 | 2017-08-09 | 2017-07-09 | 2017-06-09 | 2017-05-09 | 2017-04-09 | 2017-03-09 | 2017-02-09 | 2017-01-09 | 2016-12-09 | 2016-11-09 | 2016-10-09 | 2016-09-09 | 2016-08-09 | 2016-07-09 | 2016-06-09 | 2016-05-09 | 2016-04-09 | 2016-03-09 | 2016-02-09 | 2016-01-09 | 2015-12-09 | 2015-11-09 | 2015-10-09 | 2015-09-09 | 2015-08-09 | 2015-07-09 | 2015-06-09 | 2015-05-09 | 2015-04-09 | 2015-03-09 | 2015-02-09 | 2015-01-09 | 2014-12-09 | 2014-11-09 | 2014-10-09 | 2014-09-09 | 2014-08-09 | 2014-07-09 | 2014-06-09 | 2014-05-09 | 2014-04-09 | 2014-03-09 | 2014-02-09 | 2014-01-09 | 2013-12-09 | 2013-11-09 | 2013-10-09 | 2013-09-09 | 2013-08-09 | 2013-07-09 | 2013-06-09 | 2013-05-09 | 2013-04-09 | 2013-03-09 | 2013-02-09 | 2013-01-09 | 2012-12-09 | 2012-11-09 | 2012-10-09 | 2012-09-09 | 2012-08-09 | 2012-07-09 | 2012-06-09 | 2012-05-09 | 2012-04-09 | 2012-03-09 | 2012-02-09 | 2012-01-09 | 2011-12-09 | 2011-11-09 | 2011-10-09 | 2011-09-09 | 2011-08-09 | 2011-07-09 | 2011-06-09 | 2011-05-09 | 2011-04-09 | 2011-03-09 | 2011-02-09 | 2011-01-09 | 2010-12-09 | 2010-11-09 | 2010-10-09 | 2010-09-09 | 2010-08-09 | 2010-07-09 | 2010-06-09 | 2010-05-09 | 2010-04-09 | 2010-03-09 | 2010-02-09 | 2010-01-09 | 2009-12-09 | 2009-11-09 | 2009-10-09 | 2009-09-09 | 2009-08-09 | 2009-07-09 | 2009-06-09 | 2009-05-09 | 2009-04-09 | 2009-03-09 | 2009-02-09 | 2009-01-09 | 2008-12-09 | 2008-11-09 | 2008-10-09 | 2008-09-09 | 2008-08-09 | 2008-07-09 | 2008-06-09 | 2008-05-09 | 2008-04-09 | 2008-03-09 | 2008-02-09 | 2008-01-09 | 2007-12-09 | 2007-11-09 | 2007-10-09 | 2007-09-09 | 2007-08-09 | 2007-07-09 | 2007-06-09 | 2007-05-09 | 2007-04-09 | 2007-03-09 | 2007-02-09 | 2007-01-09 | 2006-12-09 | 2006-11-09 | 2006-10-09 | 2006-09-09 | 2006-08-09 | 2006-07-09 | 2006-06-09 | 2006-05-09 | 2006-04-09 | 2006-03-09 | 2006-02-09 | 2006-01-09 | 2005-12-09 | 2005-11-09 | 2005-10-09 | 2005-09-09 | 2005-08-09 | 2005-07-09 | 2005-06-09 | 2005-05-09 | 2005-04-09 | 2005-03-09 | 2005-02-09 | 2005-01-09 | 2004-12-09 | 2004-11-09 | 2004-10-09 | 2004-09-09 | 2004-08-09 | 2004-07-09 | 2004-06-09 | 2004-05-09 | 2004-04-09 | 2004-03-09 | 2004-02-09 | 2004-01-09 | 2003-12-09 | 2003-11-09 | 2003-10-09 | 2003-09-09 | 2003-08-09 | 2003-07-09 | 2003-06-09 | 2003-05-09 | 2003-04-09 | 2003-03-09 | 2003-02-09 | 2003-01-09 | 2002-12-09 | 2002-11-09 | 2002-10-09 | 2002-09-09 | 2002-08-09 | 2002-07-09 | 2002-06-09 | 2002-05-09 | 2002-04-09 | 2002-03-09 | 2002-02-09 | 2002-01-09 | 2001-12-09 | 2001-11-09 | 2001-10-09 | 2001-09-09 | 2001-08-09 | 2001-07-09 | 2001-06-09 | 2001-05-09 | 2001-04-09 | 2001-03-09 | 2001-02-09 | 2001-01-09 | 2000-12-09 | 2000-11-09 | 2000-10-09 | 2000-09-09 | 2000-08-09 | 2000-07-09 | 2000-06-09 | 2000-05-09 | 2000-04-09 | 2000-03-09 | 2000-02-09 | 2000-01-09 | 1999-12-09

Key: Value:

Key: Value:

MESSAGE
DATE 2011-04-06
FROM Ruben Safir
SUBJECT Subject: [NYLXS - HANGOUT] C++ Workshop, Linked List Workshop - usenet article.
Path:
reader1.panix.com!panix!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!feeder.news-service.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Yannick Tremblay
Newsgroups: comp.lang.c++
Subject: Re: Destructors can copying objects
Date: Wed, 6 Apr 2011 11:12:43 +0000 (UTC)
Organization: A noiseless patient Spider
Lines: 51
Message-ID:
References:



Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Apr 2011 11:12:43 +0000 (UTC)
Injection-Info: mx01.eternal-september.org;
posting-host="A/ypJWiYGhwl1LX8PsXfBA";
logging-data="13334";
mail-complaints-to="abuse-at-eternal-september.org";
posting-account="U2FsdGVkX1+negBFW9QRZMoLEAxN3xeDdvtpwuIeozI="
User-Agent: slrn/0.9.9p1 (Linux)
Cancel-Lock: sha1:pOoDTDVPjXkW5VbHnKS3WaXk1+o=
Xref: panix comp.lang.c++:1083058

On 2011-04-05, Ruben Safir wrote:
>
> But I'm distressed at this point because I don't want two copies of
> all
> the nodes. I want one series of nodes, which are created in free
> memory
> on the stack, handled in all possible scopes. The nodes themselves
> are
> 'self aware" of their positions in the list in that they have the
> information of they're position in the nodes. The List object itself
> does nothing more that communicate with the nodes. If I copy the List
> Object, I don't want to duplicate the nodes as well. They're on the
> heap, and then can stay there.

Are you sure about the behaviour you want?

You have a List.
The list contains Nodes.
The Nodes contain a pointer to some data.

What behaviour do you want when you copy a list?

What behavious do you want when you copy a node?

What behaviour do you want when you destroy a list?

What behaviour do you want when you destroy a node?

Don't worry about optimization for now. Worry about correctness and
consistency.

Does the Node own the data it points to?
- If yes: then the node most delete the data when the node gets
destroyed
- If no: the node only refers to the data that is external. The node
can go away without affecting the data. Lifetime management of the
data is done separately.

Should modifying a copy of a list affect the original list?
List list1;
// add ten element to list1;
assert(list1.size() == 10);
List list2 = list1; // Create a copy
assert(list2.size() == list1.size()); // definite at this point

// remove 2 element from list2
assert(list2.size() == 8);

// What about list1? Should it still contain 10 elements or 8?

Does the list owns the nodes it contains?

etc.

  1. 2011-04-01 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] C++ Workshop
  2. 2011-04-01 swd <sderrick-at-optonline.net> RE: [NYLXS - HANGOUT] C++ Workshop
  3. 2011-04-02 swd <sderrick-at-optonline.net> RE: [NYLXS - HANGOUT] Work
  4. 2011-04-05 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Work
  5. 2011-04-05 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] C++ Workshop
  6. 2011-04-05 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Re: double deletes C++ Workshop
  7. 2011-04-06 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [pasa-at-lib.hu: Re: [accu-general] Who uses C?]
  8. 2011-04-06 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] C++ Workshop Calendar
  9. 2011-04-06 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] C++ Workshop, Linked List Workshop - usenet article.
  10. 2011-04-07 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Slackware news
  11. 2011-04-07 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Slackware news
  12. 2011-04-07 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Slackware news
  13. 2011-04-08 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [jan.vipin-at-gmail.com: Re: Query about C++ Workshop]
  14. 2011-04-10 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] C++ Workshop Calendar
  15. 2011-04-10 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Hardware
  16. 2011-04-10 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Hardware
  17. 2011-04-11 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] C++ Workshop
  18. 2011-04-11 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] C++ Workshop
  19. 2011-04-11 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] C++ Workshop templated operator()<<]
  20. 2011-04-12 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] NYLUG Workshop / Hacking Society (Smalltalk, C++, Python) Tuesday April 12 6:00PM-8:00PM
  21. 2011-04-12 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [billy.donahue-at-gmail.com: Re: templated operator()<<]
  22. 2011-04-12 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] C++ Workshop Template, claass and function specialization
  23. 2011-04-12 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] C++ Workshop const
  24. 2011-04-15 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] Free Software Round Table TOMORROW, Saturday April 16 10-11 PM (streaming live)
  25. 2011-04-16 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] Free Software Round Table Canceled
  26. 2011-04-17 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] C++ Workshop reminder
  27. 2011-04-18 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Happy Peasach
  28. 2011-04-19 Elfen Magix <elfen_magix-at-yahoo.com> Re: [NYLXS - HANGOUT] Happy Peasach
  29. 2011-04-19 Kevin Mark <kevin.mark-at-verizon.net> Re: [NYLXS - HANGOUT] Happy Peasach
  30. 2011-04-24 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [nbs-at-sonic.net: [vox] Fwd: Programmng the Kernel...]
  31. 2011-04-24 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] No Workshop tonight
  32. 2011-04-26 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] NYLUG Workshop / Hacking Society (Smalltalk, C++, Python) Tuesday April 26 6:00PM-8:00PM
  33. 2011-04-28 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] NYLUG Presents: 5/18 -at- 6:30PM Cameron L. Fadjo on Construct, Program, Design: Exploring Scratch From the Perspective of Computational Thinking and Cognition
  34. 2011-04-28 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] NYLUG Presents: 5/18 -at- 6:30PM Cameron L. Fadjo
  35. 2011-04-28 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] NYLUG Presents: 5/18 -at- 6:30PM Cameron L. Fadjo
  36. 2011-04-29 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] Free Software Round Table TOMORROW, Saturday April 30 10-11 PM (streaming live)
  37. 2011-04-29 Ron Guerin <ron-at-vnetworx.net> Re: [NYLXS - HANGOUT] NYLUG Presents: 5/18 -at- 6:30PM Cameron L. Fadjo
  38. 2011-04-29 einker <eminker-at-gmail.com> Subject: [NYLXS - HANGOUT] Bellingham's LinuxFest Northwest
  39. 2011-04-29 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Bellingham's LinuxFest Northwest
  40. 2011-04-29 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] C++ Workshop - New Webservices with OKWS - Sunday evening

NYLXS are Do'ers and the first step of Doing is Joining! Join NYLXS and make a difference in your community today!