AutoHotkey Community

It is currently May 27th, 2012, 6:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: September 28th, 2011, 8:29 am 
Currently in v1 there are no differences between := "" and := Although I heard the latter becomes invalid code in v2, I have a suggestion of using it.
Code:
var := "some value"
var := ""
;this does the same in v1.
var :=

So what about the ability to eliminate created variables and to use := for it? It can be used for object members as the same functionality to the Remove() method as well.

This removes the variable, var from the variable list, which can be viewed in the Variable and their contents window (Control + v),
Code:
var := "some value"
var :=

In the same sense,
Code:
Obj := {a: "aaa", b: "bbb", c: "ccc"}
Obj.b :=
;same as
Obj.Remove("b")

The only concern I have is that it could be confusing for new users like the traditional vs expressions. What do you think?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group