[docs] error in "t_size" function

Report problems with documented functionality
User avatar
atnbueno
Posts: 89
Joined: 12 Oct 2013, 04:45
Contact:

[docs] error in "t_size" function

27 Dec 2013, 07:46

Hello all.

In the Script Compatibility documentation, if I understand the purpose of the t_size function, the output is reversed:
http://docs.ahkscript.org/Compat.htm#NumPutGet
http://l.autohotkey.net/docs/Compat.htm#NumPutGet

Shouldn't it be like this?

Code: Select all

t_size(char_count=1) {
    return A_IsUnicode ? char_count*2 : char_count
}
Regards,
Antonio
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: [docs] error in "t_size" function

14 Jan 2014, 05:14

Quite right. I'll fix it in the next update.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: [docs] error in "t_size" function

31 Jan 2014, 18:20

The v2 documentation is very much out of date. Are you using v2?

Also, I generally don't update http://lexikos.github.io/ when I release a new version.
User avatar
atnbueno
Posts: 89
Joined: 12 Oct 2013, 04:45
Contact:

Re: [docs] error in "t_size" function

01 Feb 2014, 02:14

I'm not using v2 but I wanted to review how it was going. I started in http://ahkscript.org/v2/ and ended up in the URL above.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: [docs] error in "t_size" function

01 Feb 2014, 02:20

To be clear: there is no up to date v2 documentation, except for the v2-changes document which can be found on the page you linked to. It contains all noteworthy changes.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 51 guests