Search found 282 matches

by iseahound
Yesterday, 12:06
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 66
Views: 1359

Re: [Request]: Official Library & Wrapper

Just to be clear, we're talking about 3 things in this thread: 1) A repository. Download/publish. 2) A command line tool that interfaces with the repository. 3) Some user interface / website that interfaces with the repository. Also, we need a way to manage package versions. Please learn from the mi...
by iseahound
Yesterday, 11:30
Forum: AutoHotkey v2 Development
Topic: if var in/contains comma-separated list/array
Replies: 35
Views: 1683

Re: if var in/contains comma-separated list/array

There exists a duality between operators and methods.

See operator overriding in Python: https://thepythonguru.com/python-operator-overloading/
which is a bit of a mess, since they define __add__ to be a meta function to represent +
by iseahound
Yesterday, 11:04
Forum: AutoHotkey v2 Development
Topic: Operators vs Methods
Replies: 1
Views: 57

Operators vs Methods

See: Commands vs Functions Continued from here: https://autohotkey.com/boards/viewtopic.php?f=37&t=43593 Also contains is an operator rather than a method call. There is an equivalence between operators and methods. 2 + 3 2.+(3) ; strange but should be valid which seems strange. But consider thi...
by iseahound
Yesterday, 10:42
Forum: AutoHotkey v2 Development
Topic: if var in/contains comma-separated list/array
Replies: 35
Views: 1683

Re: if var in/contains comma-separated list/array

Also contains is an operator rather than a method call. There is an equivalence between operators and methods. 2 + 3 2.+(3) ; strange but should be valid which seems strange. But consider this code: object.push("dog", "cat") object push "dog", "cat" which sho...
by iseahound
Yesterday, 10:00
Forum: AutoHotkey v2 Development
Topic: changing operators // and //= to only do integer or floor division
Replies: 7
Views: 182

Re: changing operators // and //= to only do integer or floor division

Guido explains why he uses floor division over integer division here: http://python-history.blogspot.com/2010/08/why-pythons-integer-division-floors.html Also, Ocaml is common and rare, depending on ones needs. It's a dialect of Caml , which is descended from ML (Meta Language). OCaml is notable for...
by iseahound
24 Sep 2018, 20:29
Forum: AutoHotkey v2 Development
Topic: Binary Data | VarSetCapacity | VarSetLength | Heap Object
Replies: 33
Views: 1075

Re: Binary Data | VarSetCapacity | VarSetLength | Heap Object

Does that mean we're getting memory arrays? +1
by iseahound
24 Sep 2018, 20:23
Forum: Ask For Help
Topic: Functions without parenthesis Topic is solved
Replies: 6
Views: 99

Re: Functions without parenthesis Topic is solved

Hey this feature is available in our v2! (alpha)

Code: [Select all]GeSHi © Codebox Plus

Add(2, 3)
Add 2, 3 ; Parentheses can be omitted if used at the start of a line.


https://lexikos.github.io/v2/docs/Functions.htm#intro
by iseahound
24 Sep 2018, 20:03
Forum: AutoHotkey v2 Development
Topic: if var in/contains comma-separated list/array
Replies: 35
Views: 1683

Re: if var in/contains comma-separated list/array

Sorry, what's wrong with if var contains "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" which is parsed as if var.contains("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", ...
by iseahound
24 Sep 2018, 19:22
Forum: AutoHotkey v2 Development
Topic: changing operators // and //= to only do integer or floor division
Replies: 7
Views: 182

Re: changing operators // and //= to only do integer or floor division

Hmm... this is really interesting. In OCaml, there are different operators for floats and integers. https://i.imgur.com/ac9uBOh.png https://i.imgur.com/MFpSICj.png Typically the operators are overridden into: https://cdn-images-1.medium.com/max/800/1*AZSxmS7RgFiQdcep1TIAWQ.png I'm against // because...
by iseahound
19 Sep 2018, 15:41
Forum: Tutorials
Topic: classes inherit functions from other classes
Replies: 0
Views: 56

classes inherit functions from other classes

Alternatively titled, "Objects inherit functions from other objects" a := big.small ; "new" is optional here. a.set("hey", "you") ; polymorphic! MsgBox % a.hey class big { class small { static set := ObjBindMethod(big, "set") ; object is the name of ...
by iseahound
18 Sep 2018, 19:48
Forum: AutoHotkey v2 Development
Topic: Math Functions
Replies: 16
Views: 401

Re: Math Functions

No constants please. 2.7182... and 3.141592... lets the user choose the precision of the float, so some calculations can be performed faster if the user wants. All trig functions should return radians. Conversion should be left to the user, (where the precision of PI is left to them) gamma()...
by iseahound
13 Sep 2018, 21:02
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 21
Views: 453

Re: Nothing.

How would you handle division by 0? Currently it returns an empty string, so if implemented it should probably return nothing. I very much don't want to see an exception/error, much less different classes of errors, such as 1/0 = Infinity or even worse, 0/0 = NaN . I just want to say I enjoy the sim...
by iseahound
13 Sep 2018, 08:50
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 66
Views: 1359

Re: [Request]: Official Library & Wrapper

I don't think the awesome series of lists is the best way to display fundamentally helpful (and small) libraries like the OP is discussing. It's been more to display the capabilities of a language, and large mature libraries.
by iseahound
12 Sep 2018, 22:23
Forum: AutoHotkey v2 Development
Topic: Exceptions (for unknown properties, more)
Replies: 6
Views: 192

Re: Exceptions (for unknown properties, more)

I do not think the "null object pattern" is relevant here - did you even read the article? Note also that this topic was originally split from a discussion about null. Yes and the article mentions two of the Related operators you were considering, the null coalescing operator ?? and the n...
by iseahound
12 Sep 2018, 20:31
Forum: AutoHotkey v2 Development
Topic: <> no longer acceptable as a comparison operator
Replies: 35
Views: 659

Re: <> no longer acceptable as a comparison operator

Hey I'm pretty sure that "deprecated" is a fancy term for "we made some poor design choices, and now that we have this new way of doing things, please use that." In this case, IfEqual, IfNotEqual, IfExist, IfInString have been replaced with if (expression) so it's really ...
by iseahound
12 Sep 2018, 20:06
Forum: AutoHotkey v2 Development
Topic: Exceptions (for unknown properties, more)
Replies: 6
Views: 192

Re: Exceptions (for unknown properties, more)

Then there's the less likely but still real possibility that the property is removed while it is executing, and invoked recursively (maybe indirectly). There's also the possibility that the property is implemented while it is executing, so throwing an exception makes no sense. I agree. The only way...
by iseahound
12 Sep 2018, 19:40
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 66
Views: 1359

Re: [Request]: Official Library & Wrapper

We're all just waiting for someone to create the AutoHotkey version of https://pypi.org/ or https://www.npmjs.com/ or https://rubygems.org/ or https://crates.io/ etc. Note that C and C++ work just fine without an official repository, and Go seems to just have https://godoc.org/ and keeping in mind t...
by iseahound
12 Sep 2018, 19:24
Forum: Ask For Help
Topic: Webpage URL with % sign
Replies: 4
Views: 75

Re: Webpage URL with = sign

Code: [Select all]GeSHi © Codebox Plus

Run % "https://autohotkey.com/boards/viewtopic.php?f=5&t=55642"

Go to advanced search