String - not shallow copy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thesti
    New Member
    • Nov 2007
    • 144

    String - not shallow copy

    hello,

    i wonder why the String class does not perform a shallow copy? is there something that makes it different? how to make a class similar to the string class.


    thanks in advance
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    I'm not sure what the problem with your application is. Are you getting an error?

    Comment

    • thesti
      New Member
      • Nov 2007
      • 144

      #3
      hi,

      thank you for the reply.

      no, i don't get any error. i'm just curious why string objects do deep copy, while others do shallow. is it because string class is declared using the 'immutable' keyword?

      i want to know,
      how to deep copy objects?

      thanks

      Comment

      Working...