[a104] whats the deal with Class.New()? Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

[a104] whats the deal with Class.New()?

Post by swagfag » 20 Aug 2019, 07:36

it keeps popping up here and there in examples and whatnot Array2D.new(3, 4)
is keyword new being phased out in favor of this method or?

Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: [a104] whats the deal with Class.New()?

Post by Helgef » 20 Aug 2019, 08:10

New calls cls.new(), see class.

User avatar
kczx3
Posts: 1648
Joined: 06 Oct 2015, 21:39

Re: [a104] whats the deal with Class.New()?

Post by kczx3 » 20 Aug 2019, 08:39

There is a note in the docs that the new keyword may be removed in a future update. I still prefer new used as a keyword and not as a static method though.


Post Reply

Return to “Ask for Help (v2)”