Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Using a operator "new"  (Read 2165 times)

0 Members and 1 Guest are viewing this topic.

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Using a operator "new"
« on: October 21, 2009, 09:11:44 AM »

Hi!

If does use a string:

var StrObject = new String("Initial value");

is it needed to write:

delete StrObject?
« Last Edit: October 21, 2009, 11:42:11 AM by Lion »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Using a operator "new"
« Reply #1 on: October 21, 2009, 12:57:54 PM »

No, objects created with new are destroyed automatically when they are no longer referenced.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.032 seconds with 20 queries.