Hello all! Just wanted to say happy holidays!
Cheers
Search found 4709 matches
- 23 Dec 2023, 13:04
- Forum: About This Community
- Topic: Guestbook: say hi, thank you, whatever!
- Replies: 109
- Views: 87365
- 01 Aug 2023, 10:24
- Forum: AutoHotkey Development
- Topic: Typed properties - experimental build available
- Replies: 68
- Views: 12913
Re: Typed properties - experimental build available
Thanks for your answers. It is more useful, almost by definition. Strictly speaking, maybe, but practically, sometimes simpler is plain better. I don't really care if it's int x or x : i32 or whatever, my concern is more related to if we have to define size and ptr props for each struct , or write c...
- 23 Jul 2023, 08:27
- Forum: AutoHotkey Development
- Topic: Typed properties - experimental build available
- Replies: 68
- Views: 12913
Re: Typed properties - experimental build available
The primary purpose is basically "struct support", but this would be more flexible than (just) having a dedicated struct type I guess I am narrow-minded, but what is the purpose of something more flexible ? I would expect stuct support to be as close as possible to struct syntax , consistent with d...
- 23 Jul 2023, 08:00
- Forum: Wish List
- Topic: stacked hotstrings with X execute option (v1 to v2 changes) Topic is solved
- Replies: 13
- Views: 2837
Re: stacked hotstrings with X execute option (v1 to v2 changes) Topic is solved
is this v1/v2 difference intended? From my side, there was no intention to consider anything v1. I probably didn't consider this particular case of stacking, only, it is probably intended to catch cases where the author forgot to write the single-line action. That said, unless trivial to change, wi...
- 27 Jun 2023, 12:36
- Forum: AutoHotkey Development
- Topic: ATan2
- Replies: 2
- Views: 455
Re: v2.1-alpha.1
x=y=0 should throw as it is not defined. Although y,x are just variable names and we can call them whatever we like, it should probably say y,x in the docs, due to it being conventional. Other conventions exist though, eg, in LibreOffice it is atan2(x,y), which behaves as atan2(y,x) in this new bif....
- 20 May 2023, 10:38
- Forum: General Discussion
- Topic: Code Puzzle Thread
- Replies: 145
- Views: 84631
Re: Code Puzzle Thread
@teadrinker has provided a nice solution for puzzle 17 and will be awarded one point. But there is still some room for improvement, so do not hesitate to give it a try. I will post teadrinkers solution (much) later.
Cheers.
Cheers.
- 19 May 2023, 07:05
- Forum: Ask for Help (v2)
- Topic: Function calls in V2 Topic is solved
- Replies: 3
- Views: 656
Re: Function calls in V2 Topic is solved
Code: Select all
FuncToBeCalled := %FunctionName%.Bind(SomeValue)
: then
FuncToBeCalled()
- 16 May 2023, 12:39
- Forum: General Discussion
- Topic: Code Puzzle Thread
- Replies: 145
- Views: 84631
Re: Code Puzzle Thread
Send in your solution as a private message to me, so that everyone gets a chance to consider the problem before solutions are posted. Puzzle 17 - A pseudo- pseudo-array [/size] Puzzle description: Doing repeated string concatenations with variables is very fast, but with array elements it is border...
- 15 May 2023, 12:42
- Forum: Ask for Help (v2)
- Topic: How to get pointer to a string stored in an array element?
- Replies: 26
- Views: 2625
Re: How to get pointer to a string stored in an array element?
I think Lexikos also says that it wont be a race condition (implicitly). [...] Notice the use of a temporary string buffer here. The life time of string pointers are described, explicitly, in the documentation for :arrow: strptr . In particular, The address of a literal string is valid until the pr...
- 12 May 2023, 13:19
- Forum: Ask for Help (v2)
- Topic: How to get pointer to a string stored in an array element?
- Replies: 26
- Views: 2625
Re: How to get pointer to a string stored in an array element?
I would make a suitable object for the job, eg,
Cheers.
Code: Select all
class str_arr extends array {
; also do __new if desired
__item[k]{
get => strget(super[k])
set {
b := buffer(strlen(value) * 2 + 2)
strput value, b
return super[k] := b
}
}
ptr(k) => super[k].ptr
}
- 12 May 2023, 12:58
- Forum: Scripts and Functions (v2)
- Topic: [a108] N-dimensional map.
- Replies: 8
- Views: 3406
Re: [a108] N-dimensional map.
also,
Cheers.
Code: Select all
map.prototype := map_n.prototype
- 07 May 2023, 08:08
- Forum: Bug Reports
- Topic: [v2] Unset breaks property setters
- Replies: 1
- Views: 877
Re: [v2] Unset breaks property setters
This is because setters are translated to functions with one required parameter. No, two required parameters, A property definition with both get and set actually creates two separate functions, which do not share local or static variables or nested functions. As with methods, each function has a h...
- 07 May 2023, 07:37
- Forum: Ask for Help (v1)
- Topic: [v1] a numeric string pushed as a number after an item of the target object being compared with it
- Replies: 3
- Views: 956
Re: [v1] a numeric string pushed as a number after an item of the target object being compared with it
Please see :arrow: Caching , also note If both inputs are numbers or numeric strings , they are compared numerically [...] Note: In AutoHotkey v1, a quoted string (or the result of concatenating with a quoted string) is never considered numeric when used directly in an expression. You can work aroun...
- 04 Mar 2023, 05:13
- Forum: AutoHotkey Development
- Topic: Review of PR#162 (module support)
- Replies: 2
- Views: 1610
Re: Review of PR#162 (module support)
Thanks for taking the time to give the feedback :). Although my memory about the details of the implementation is hazy, to say the least, I can say that I had little or no concerns about code size or code efficiency. My intention was a first draft of working and usable code. If there had ever been a...
- 04 Mar 2023, 04:29
- Forum: Wish List
- Topic: [v2] __Static property and the :: operator
- Replies: 15
- Views: 2935
Re: [v2] __Static property and the :: operator
it is not crazyI don't think the operator is anything crazy
What would be the syntax for just accessing the class itself?
This would probably not work,
Code: Select all
; wanted: the same result as the_class := Application
the_class := this::
Code: Select all
the_class := (this::)
- 12 Feb 2023, 07:58
- Forum: Wish List
- Topic: [v2] __Static property and the :: operator
- Replies: 15
- Views: 2935
Re: [v2] __Static property and the :: operator
I've been using this :arrow: [v2 - a108][Tips] How to create a Class property for instances of a class. . Which I guess would still work, although the text is a bit outdated, most likely. I think something like a class , or as suggested, a __static , property should be built-in. I guess it is either...
- 05 Feb 2023, 06:36
- Forum: AutoHotkey Development
- Topic: Could the changes to __Delete be explained?
- Replies: 2
- Views: 1354
Re: Could the changes to __Delete be explained?
There might be some information in :arrow: #304 , regarding the first points. From a user standpoint, reloading the application, deleting objects, and rightclicking the tray icon to ExitApp no longer throws errors. ? Specifically, to what degree can the new __Delete order be relied upon? and to what...
- 05 Feb 2023, 06:24
- Forum: Ask for Help (v1)
- Topic: Cycle Through Characters on Keypress Topic is solved
- Replies: 11
- Views: 4177
- 04 Feb 2023, 05:03
- Forum: Scripts and Functions (v2)
- Topic: [a108] N-dimensional map.
- Replies: 8
- Views: 3406
Re: [a108] N-dimensional map.
thanks for the feedback, glad you liked it.
Cheers.
Cheers.
- 21 Jan 2023, 09:32
- Forum: General Discussion
- Topic: Code Puzzle Thread
- Replies: 145
- Views: 84631
Re: Code Puzzle Thread
That solution is not acceptable, you are not allowed to assign unset as that was not possible at the time of the puzzle start. Moreover, I think !%a% := unset is undefined and should probably throw. The foreach oneliner should use the * operator instead of the regex callout thingy. See :arrow: Varia...