But there is a ~= operator.
A shorthand for regexmatch.
Rosetta Code
Re: Rosetta Code
Recommends AHK Studio
- MasterFocus
- Posts: 146
- Joined: 01 Oct 2013, 09:47
- Location: Rio de Janeiro - RJ - Brasil
- Contact:
Re: Rosetta Code
I actually don't know much about RosettaCode and Licences. But I suppose submit code does become licensed under GNU FDL 1.2, right? If you find out more about it, please let us know.
About the RegEx operator, sorry, I misread the code AND the supposed operator.
About the RegEx operator, sorry, I misread the code AND the supposed operator.
Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.
Need help? Please post on the forum before sending me a PM.
Re: Rosetta Code
Why not bsd or MIT, zlib?
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Rosetta Code
Patent treachery?!? :O
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Rosetta Code
Improvement:
- SEDOL (~1.08x faster)
- SEDOL (~1.08x faster)
Last edited by jNizM on 13 Mar 2014, 15:42, edited 1 time in total.
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Re: Rosetta Code
My personal view:
1. There are many scripts on Rosetta Code without any AHK Basic compatibility.
2. After so long time AHK_L exists, it's time to change or not?! | Latest AHK_Basic Version (1.0.48.05): 2009-09-25
3. Sorry but I don't care about AHK Basic.
1. There are many scripts on Rosetta Code without any AHK Basic compatibility.
2. After so long time AHK_L exists, it's time to change or not?! | Latest AHK_Basic Version (1.0.48.05): 2009-09-25
3. Sorry but I don't care about AHK Basic.
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Re: Rosetta Code
My code is a small and fast translated function without any invalid checks.
Your code is big and nearly full of invalid checks.
So use whatever you want?!
Your code is big and nearly full of invalid checks.
So use whatever you want?!
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Re: Rosetta Code
I am sorry, but I must intervene in this disagreement. I have added both, a "standard" approach & an "optimized" approach. Henceforth, it will target all autohotkey users from now on : New and Experienced Users. I kindly suggest to stop this, and simply forget. You both have truth in your arguments, but I wish for Ahkscript to be a peaceful community. Please understand, I wish the best.
Thank you for your collaboration.
Thank you for your collaboration.
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Rosetta Code
Added world's shortest implementation of Rot13 : http://rosettacode.org/wiki/Rot-13#AutoHotkey
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
- LinearSpoon
- Posts: 156
- Joined: 29 Sep 2013, 22:55
Re: Rosetta Code
Apparently this task was decided inappropriate for AutoHotkey (perhaps an older version?), but it's certainly possible now...
Code: Select all
class example
{
foo()
{
Msgbox Called example.foo()
}
__Call(method, params*)
{
funcRef := Func(funcName := this.__class "." method)
if !IsObject(funcRef)
{
str := "Called undefined method " funcName "() with these parameters:"
for k,v in params
str .= "`n" v
Msgbox %str%
}
else
{
return funcRef.(this, params*)
}
}
}
ex := new example
ex.foo()
ex.bar(1,2)
Re: Rosetta Code
nice! do you want me to add it to Rosetta Code for you? ill add a reference link to your post
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
- LinearSpoon
- Posts: 156
- Joined: 29 Sep 2013, 22:55
Re: Rosetta Code
You may add it; I do not have an account with the site.
Re: Rosetta Code
Done. Added to http://rosettacode.org/wiki/Respond_to_ ... ethod_call
regards
regards
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Rosetta Code
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Re: Rosetta Code
Code: Select all
Loop, PARSE, SortMethods, `,
If (%A_LoopField%)
Time .= A_LoopField . " Sort: " . %A_LoopField%Time . "`t`t" . %A_LoopField%Out . "`r`n"
MsgBox,, Results!, %Time%
Recommends AHK Studio
Re: Rosetta Code
added Parse command-line arguments : http://rosettacode.org/wiki/Parse_comma ... AutoHotkey
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
- smorgasbord
- Posts: 493
- Joined: 30 Sep 2013, 09:34
Re: Rosetta Code
oops!
Last edited by smorgasbord on 18 Mar 2014, 07:48, edited 1 time in total.
John ... you working ?
- smorgasbord
- Posts: 493
- Joined: 30 Sep 2013, 09:34
Re: Rosetta Code
Not visible to me. [/quote]
John ... you working ?
Re: Rosetta Code
:O
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Rosetta Code
Joystick position
Keyboard input/Keypress check
Musical scale
Nth
It's a shame that when Sobriquet was banned (for reasons unknown to me) that his/her existing posts were deleted also. It seems he/she has contributed quite a lot to Rosetta Code.
Keyboard input/Keypress check
Musical scale
Nth
It's a shame that when Sobriquet was banned (for reasons unknown to me) that his/her existing posts were deleted also. It seems he/she has contributed quite a lot to Rosetta Code.
Return to “Off-topic Discussion”
Who is online
Users browsing this forum: No registered users and 19 guests