Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26
Like Tree2Likes

Thread: Making deep copy of object arraylist

  1. #21
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,422
    Blog Entries
    7
    Rep Power
    28

    Default Re: Making deep copy of object arraylist

    Quote Originally Posted by Tolls View Post
    Considering it was developed for a language which had a single data type (were they words?) it made sense to come up with a naming system to indicate what type a particular variable was expected to contain. It makes no sense at all for languages with strong typing.
    afaik, it was developed during Microsoft's MFC period; that was in C++ and it didn't make sense from then ... if it were bcpl I would've understood.

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

  2. #22
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Making deep copy of object arraylist

    Must have been earlier, the win32 API also uses it. But I'm sure during the MFC days it was expanded to include OO naming conventions. But its a convention for C-programming in any case.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #23
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,422
    Blog Entries
    7
    Rep Power
    28

    Default Re: Making deep copy of object arraylist

    Quote Originally Posted by gimbal2 View Post
    Must have been earlier, the win32 API also uses it. But I'm sure during the MFC days it was expanded to include OO naming conventions. But its a convention for C-programming in any case.
    But C is also a typed language (although you can cast your way out of it); it just doesn't make sense to duplicate the type of a variable in the name of the variable; especially not if the language doesn't know of it ...

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

  4. #24
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Making deep copy of object arraylist

    When in doubt, look it up on wikipedia.

    Hungarian notation - Wikipedia, the free encyclopedia

    I stand corrected.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #25
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Default Re: Making deep copy of object arraylist

    try the "copy" method in arraylist or lists object or try casting?

    myfilmarraylist = (film) myotherobjectarraylist;

  6. #26
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Making deep copy of object arraylist

    And as the wiki link says:
    "and found its first major use with the BCPL programming language".
    I'm sure that's what he developed it for, but took it to Microsoft when he moved there.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 7
    Last Post: 10-09-2013, 09:48 PM
  2. Deep copy arraylist (NO CLONE)
    By NoobieCode in forum New To Java
    Replies: 5
    Last Post: 05-02-2013, 05:24 PM
  3. Deep Copy Constructor
    By tngo in forum New To Java
    Replies: 3
    Last Post: 01-29-2013, 03:58 PM
  4. deep copy in java
    By kmm1977 in forum New To Java
    Replies: 1
    Last Post: 12-09-2011, 06:59 PM
  5. Deep copy?!
    By deepthought015 in forum New To Java
    Replies: 3
    Last Post: 05-07-2009, 07:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •