Page 8 of 11

Re: Rosetta Code

Posted: 09 Mar 2014, 09:45
by nnnik
But there is a ~= operator.
A shorthand for regexmatch.

Re: Rosetta Code

Posted: 09 Mar 2014, 19:28
by MasterFocus
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. :oops: :mrgreen:

Re: Rosetta Code

Posted: 10 Mar 2014, 11:55
by joedf
Why not bsd or MIT, zlib?

Re: Rosetta Code

Posted: 11 Mar 2014, 08:58
by joedf
Patent treachery?!? :O

Re: Rosetta Code

Posted: 13 Mar 2014, 08:10
by jNizM
Improvement:
- SEDOL (~1.08x faster)

Re: Rosetta Code

Posted: 13 Mar 2014, 15:39
by jNizM
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.

Re: Rosetta Code

Posted: 14 Mar 2014, 09:17
by jNizM
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?!

Re: Rosetta Code

Posted: 14 Mar 2014, 11:18
by joedf
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.

Re: Rosetta Code

Posted: 14 Mar 2014, 11:38
by joedf
Added world's shortest implementation of Rot13 : http://rosettacode.org/wiki/Rot-13#AutoHotkey

Re: Rosetta Code

Posted: 15 Mar 2014, 16:21
by LinearSpoon
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

Posted: 15 Mar 2014, 16:22
by joedf
nice! do you want me to add it to Rosetta Code for you? ill add a reference link to your post :)

Re: Rosetta Code

Posted: 15 Mar 2014, 17:00
by LinearSpoon
You may add it; I do not have an account with the site.

Re: Rosetta Code

Posted: 15 Mar 2014, 18:20
by joedf

Re: Rosetta Code

Posted: 17 Mar 2014, 05:30
by jNizM
Added first Post:
- AutoHotkey examples needing attention

Update Rank:
- 17.03.2014

Re: Rosetta Code

Posted: 17 Mar 2014, 06:04
by nnnik

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%
Nightmare code.

Re: Rosetta Code

Posted: 17 Mar 2014, 19:56
by joedf
added Parse command-line arguments : http://rosettacode.org/wiki/Parse_comma ... AutoHotkey

Re: Rosetta Code

Posted: 18 Mar 2014, 03:39
by smorgasbord
oops! :x

Re: Rosetta Code

Posted: 18 Mar 2014, 07:43
by smorgasbord
[quote="smorgasbord"][quote="joedf"]added Parse command-line arguments : http://rosettacode.org/wiki/Parse_comma ... AutoHotkey[/quote]
Not visible to me. :([/quote]

Re: Rosetta Code

Posted: 18 Mar 2014, 11:03
by joedf
:O ;)

Re: Rosetta Code

Posted: 06 Apr 2014, 12:15
by kon
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.