September 11, 2024, 07:10:04 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest WME version:
WME 1.9.1
(January 1st, 2010) -
download
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Using a operator "new"
« previous
next »
Pages: [
1
]
Print
Author
Topic: Using a operator "new" (Read 2285 times)
0 Members and 1 Guest are viewing this topic.
Lion
Regular poster
Karma: 0
Offline
Gender:
Posts: 101
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
Gender:
Posts: 5683
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.
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Using a operator "new"