Search found 299 matches

by vvhitevvizard
26 Jan 2019, 06:36
Forum: AutoHotkey v2 Development
Topic: Compiling AHK_L with gcc
Replies: 10
Views: 1568

Re: Compiling AHK_L with gcc

About C++ compiler's support for new features - detailed table: https://en.cppreference.com/w/cpp/compiler_support Oh I believe the gcc version will be faster since we use an old visual studio version. In read.me file Lexikos wrote that AHK v2 was compiled using Microsoft Visual Studio Community 201...
by vvhitevvizard
26 Jan 2019, 06:05
Forum: AutoHotkey v2 Development
Topic: Compiling AHK_L with gcc
Replies: 10
Views: 1568

Re: Compiling AHK_L with gcc

I used to think Microsoft was behind 1 step but whether latest version GCC compiled AHK is faster or not is subject to testing ofc ;)
by vvhitevvizard
26 Jan 2019, 05:27
Forum: AutoHotkey v2 Development
Topic: Compiling AHK_L with gcc
Replies: 10
Views: 1568

Re: Compiling AHK_L with gcc

If the Microsoft compiler permits minor errors in the C++ standards its because they won't lead to runtime errors. Not explicit errors but the possibility of unexpected results. As I got it Microsoft is not so strict when it comes to casting variables to a different type. In the indicated error abo...
by vvhitevvizard
26 Jan 2019, 05:04
Forum: AutoHotkey v2 Development
Topic: Compiling AHK_L with gcc
Replies: 10
Views: 1568

Re: Compiling AHK_L with gcc

Putting AHK on GCC would be huge and it seems that it would increase the likelihood of a cross-platform AutoHotkey. Even before cross-platforming stuff, GCC compiled AHK v2 would definitely increase performance. Also GCC gives some additional hints on actual errors by C++ standards (which r permitt...
by vvhitevvizard
25 Jan 2019, 11:24
Forum: AutoHotkey v2 Development
Topic: Compiling AHK_L with gcc
Replies: 10
Views: 1568

Compiling AHK_L with gcc

Im not sure is this deserves a separate topic, so I post it here. About compiling AHK with GCC, the only info I found is 11 years old post: https://autohotkey.com/board/topic/28748-compiling-with-gcc/ So many things changed since then. Links r dead. I see absolutely different errors flying by. :) I ...
by vvhitevvizard
25 Jan 2019, 08:24
Forum: AutoHotkey v2 Development
Topic: potential line continuation bug Topic is solved
Replies: 2
Views: 687

potential line continuation bug Topic is solved

Speaking of if -statement and short-circuit alternatives, when I was creating some long expression, I accidentally found a new conundrum. For the example, I simplified it to the smallest possible arrangement that keeps raising an error. The next syntax is correct at _load time_ ( if statement's expr...
by vvhitevvizard
25 Jan 2019, 02:28
Forum: AutoHotkey v2 Development
Topic: fat function in class method changes var outside itsscope
Replies: 59
Views: 6246

Re: fat function in class method changes var outside itsscope

I'm not sure what you mean here. You don't need to use parenthesis to evaluate a variable inside an expression, or outside of one, barring that exception of object creation syntax and gosub/goto. Similar syntax already exists for array declarations with variables enclosed in parenthesis: Any expres...
by vvhitevvizard
24 Jan 2019, 10:06
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

String keys aren't even case sensitive. generate names w.o letters. or with reduced set (e.g. only in lower case). how many different symbols u need to create a unique hash string? Ofc you can store an object's address as an integer key, it is very inconvenient though, since you have to call object...
by vvhitevvizard
24 Jan 2019, 09:29
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

Strings are not guaranteed to be unique. Objects are guaranteed to be UNIQUE. Not objects themselves. their pointers. Effectively simple integers. What stops u from using integer as a key name? :D Strings may be unique for particular namespace. Within a class one might have full control over create...
by vvhitevvizard
24 Jan 2019, 07:06
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

And said unique identifier value cannot be any object? "obj_val" , it is not a syntax version of "obj_key":["obj_val"] Yes result is not the same: left side is either object or literal string. And that's what makes me questioning - if we wanted to add array's reference to another object, there r mo...
by vvhitevvizard
24 Jan 2019, 06:34
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

nnnik wrote:
24 Jan 2019, 06:21
And what exactly is a key? Not a value?
A key is any value that takes up the role of a key in a key-value pair.
a key is a unique identifier containing a value.
by vvhitevvizard
24 Jan 2019, 06:26
Forum: AutoHotkey v2 Development
Topic: fat function in class method changes var outside itsscope
Replies: 59
Views: 6246

Re: fat function in class method changes var outside itsscope

Declaration keywords are not even considered in the expression parser, so they are just variables. Oh One that statement of urs explains many things! Thx for ur feedback. Functions and variables do not share the same storage. A variable can be named like a function without breaking the function. Yo...
by vvhitevvizard
24 Jan 2019, 06:09
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

AHK is an interpreted language. The Associative Object in AHK performs actions similar to a map - It maps one value to another. Isn't it consisting of pairs key:value for the user script's level logic? Methods of the particular object might ( or might not ) do enumeration, intercept references to s...
by vvhitevvizard
24 Jan 2019, 05:03
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

for k, v in { func('msgbox') : 'hello world' } %k%(v) Yes. Internally we saw that key name's type may be a reference to an object. yet I don't see any advantages of it. Object reference might be stored in the right field (value) with all its properties ("hello world" string, etc) inside that refere...
by vvhitevvizard
24 Jan 2019, 04:25
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

Maybe you just have very limited experience in programming. At the very least that would explain your reaction. Using an object as key is nothing amazing and is done in many languages in different ways. I think the issue is my poor English. I might expressed it in a wrong way so u don't understand ...
by vvhitevvizard
24 Jan 2019, 04:05
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

How does that relate to my comment? Do u believe quirks and irregularities compared to recognized standards would make AHK better? AHK can be whatever its current developers want it to be. But if AHK is to compete with top 50 languages at least, it has to be structured and clear as much as possible...
by vvhitevvizard
24 Jan 2019, 03:53
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

:arrow: doc . Also: The key's value is preserved, but its type identity is not. That is, integers may be stored as strings or vice versa, so long as the value remains the same (including the formatting of numeric strings). Doesn't it look like making a key _name_ as an object makes no sense. Just a...
by vvhitevvizard
24 Jan 2019, 03:40
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

nnnik wrote:
24 Jan 2019, 03:39
What does AHK have to do with JSON other than using a similar syntax?
Common sense. U know why Python is so popular? B/c Almost everything in it has a unified syntax. I don't consider a choice of esoteric, multiple ways of syntax as a virtue.
by vvhitevvizard
24 Jan 2019, 03:39
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

Integer keys would be faster to find mainly due to numeric comparison being faster than case insensitive string comparison, not due to their internal placement. These are assumptions. Yes. I was in the middle of correcting my post above. Internally they r divided into 3 grps and searched separately...
by vvhitevvizard
24 Jan 2019, 03:37
Forum: Ask For Help
Topic: Obj.Count() using Numget??
Replies: 34
Views: 2397

Re: Obj.Count() using Numget??

Helgef wrote:
24 Jan 2019, 03:30
:arrow: doc.
What I meant is "obj_key":["obj_val"] is correct for JSON. and ["obj_key"]:["obj_val"] is illegal.

Go to advanced search