Page 1 of 1

Difference between []New and .New

Posted: Thu Nov 22, 2012 3:36 pm
by RobertB
Hello,

we are using Dyalog 12.0 in our Web-Applications.
Is there a difference in creating an object with []New and .New?
Both is working.

Example:
DateTime.New 2012 11 22
[]New DateTime 2012 11 22

Regards
Robert

Re: Difference between []New and .New

Posted: Tue Nov 27, 2012 9:51 am
by Vince|Dyalog
Hi Robert,

We recommend using the ⎕new way.

In the end, they are the same but there is potential for a clash if the class already had it's own New method.

Regards,

Vince

Re: Difference between []New and .New

Posted: Wed Nov 28, 2012 12:52 pm
by RobertB
Thanks Vince