Theories about variables in the AutoHotkey

Talk about anything
ewertoncsmelo
Posts: 6
Joined: 13 Feb 2022, 07:42

AHK Data Type Properties ?

13 Feb 2022, 08:04

Please, where can I find information on the following topics:
Data types
What data types does the language support?
What are primitive types and what are composite types?
What are numeric types and how are they different?
Is it possible to define enumerable data types? And subtracks?
How does the language handle Strings?
primitive type? Composite type?
Static size? Dynamic size (limited?)?
Does the language support the following composite types? Like?
Cartesian product
Mappings
disjoint unions
recursive types

Please, you place examples...

Mod edit: Moved to "Ask For Help" from "Forum Issues"
Last edited by BoBo on 13 Feb 2022, 11:05, edited 1 time in total.
Reason: Changed subject lines from "Data types" to 'AHK Data Type Properties ?'
ewertoncsmelo
Posts: 6
Joined: 13 Feb 2022, 07:42

Theories about variables in the AutoHotkey

01 Mar 2022, 11:08

I need information about the topics:
I'm not getting

Temporary Variables
Persistent Variables
storable
Composite Variables
Variable update
Full update? Selective update?
matrices
Static? Dynamic? Flexible?
Copy Semantics and Reference Semantics
commands
Jump
Assignment
Simple attribution? Multiple Assignment? Concurrent Assignment?
Procedure call?
Sequential command?
collateral command?
conditional command?
iterative command?
Command Expression (expressions with side effects)?
Command block and Expression block?
abstractions
Function abstraction? Procedure abstraction?
Parameterization of abstractions
Parameter passing by copy? (value, result, value/result?)
Parameter passing by reference?
Program Units
packages?
Types of data summaries?
Objects and Classes?
Generic Units?
sequencers
Unconditional Deviations?
leaks?
Exceptions?
Last edited by gregster on 01 Mar 2022, 11:13, edited 1 time in total.
Reason: Post was merged from separate topic.
gregster
Posts: 9073
Joined: 30 Sep 2013, 06:48

Re: Theories about variables in the AutoHotkey

01 Mar 2022, 11:17

I would recommend to study the AHK v1 docs: https://www.autohotkey.com/docs/AutoHotkey.htm (or the v2 beta docs, if you prefer: https://lexikos.github.io/v2/docs/AutoHotkey.htm) - and ideally forum posts as well, which can be found via our search box or https://www.autohotkey.com/search/.
Then please ask specific questions! One by one.

What are you expecting from requests like this? Nobody will replicate the already available docs or information here for this vast array of topics.
I am not even sure if you already started looking at the docs, or if this is meant as a joke. 🤷‍♂️ Many things you have listed can be easily found in the AHK docs, others are quite general concepts, or it's unclear what you are specifically looking for.
What did you find in the AHK docs or on these forums about these topics? Which questions are still open and relevant? Posting code along with specific questions and context is usually preferable to simply asking general questions. Thank you and...
Happy studies!
User avatar
Delta Pythagorean
Posts: 628
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: Theories about variables in the AutoHotkey

02 Mar 2022, 17:41

This is all I know, and all I can decipher from what you've asked.
Go nuts.
Questions

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

User avatar
lmstearn
Posts: 697
Joined: 11 Aug 2016, 02:32
Contact:

Re: Theories about variables in the AutoHotkey

03 Mar 2022, 00:48

As the thread was entitled "Theories about variables in the AutoHotkey", the hope was to discover new, interesting and didactic thoughts on what variable theories abound at present. Like something out of Tractatus perhaps?
The variable is all that is the case.
The variable is the totality of facts, not of things.
The variable is determined by the facts, and by their being all the facts.
For the totality of facts determines what is the case, and also whatever is not the case.
The facts in logical space are the variable.
The variable divides into facts.
Each item can be the case or not the case while everything else remains the same.
Edit:
Program Units: Could also be modules, might be classes or routines usually #included in a project..
Sequential command: Commands issued in sequence as opposed to commands originating from different threads?
Collateral command: Possibly related to this from Wikipedia:
serial-clause using go-on-token (viz. semicolon): begin a; b; c end – units are executed in order.
collateral-clause using and-also-token (viz. ","): begin a, b, c end – order of execution is to be optimised by the compiler.
parallel-clause using and-also-token (viz. ","): par begin a, b, c end – units must be run in parallel threads.
Conditional command: Command issued from within a conditional block?
Iterative command: Command issued from an iterator or loop?
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH
User avatar
Delta Pythagorean
Posts: 628
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: Theories about variables in the AutoHotkey

03 Mar 2022, 14:23

lmstearn wrote:
03 Mar 2022, 00:48
1. Program Units: Could also be modules, might be classes or routines usually #included in a project..
2. Sequential command: Commands issued in sequence as opposed to commands originating from different threads?
3. Collateral command: Possibly related to this from Wikipedia [...]
4. Conditional command: Command issued from within a conditional block?
5. Iterative command: Command issued from an iterator or loop?
1. When a file is included to the script, everything is pulled in as if it was copy-pasted into the file at the location of the #Include directive.
2. Commands are always run in the order they're written?
3. Multiple commands cannot be executed on the same line. There's no expression separator or whatever you'd call it.
4. Do you mean something like an if block?
5. Commands can be executed anywhere so long as it's on its own line.
I don't know what you're thinking of when you see a command, but imagine them as a function that's picky.

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

User avatar
lmstearn
Posts: 697
Joined: 11 Aug 2016, 02:32
Contact:

Re: Theories about variables in the AutoHotkey

06 Mar 2022, 03:25

My theory on variables/commands/functions can be summed up as:
Spoiler
:D
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH
SOTE
Posts: 1426
Joined: 15 Jun 2015, 06:21

Re: Theories about variables in the AutoHotkey

08 Mar 2022, 05:32

@Delta Pythagorean

Generic Units?

AHK is a weakly typed scripting language, so doesn't need generics, as you would often use in strongly typed languages like C#, Java, Pascal, etc... A way to more easily understand types, is they are a way of defining variables, where their type must be declared before usage. In AHK, you can simply assign a variable to a number, num := 12 and then use. In strongly typed languages, you must first declare the variable and its type, so num : integer.

In the strongly typed languages, if you have a function where its parameters need to accept different types (integers, strings, booleans, etc...), they may use generics. In AHK you would simply do func(param1, param2), where they might do something like func<T>(param1 T, param2 T). The <T> and T are often used with generics and as a placeholder for whatever type, in various programming languages.

Iterative command?

This is usually just referring to things like loops, while-loops, for-loops, etc...

To me, these type of questions give the impression that the OP is not bothering to read the AHK help documentation and/or is new to programming in general, so doesn't know what to make of terms that they may have read elsewhere. If either are true, the best thing to do is still to refer them to the AHK help documentation, and answer specific questions one by one (or at least a few at a time), where they have specific questions about things they don't understand. There are so many questions, that the range of things we are being asked to respond to is very broad. Even after explaining them, a beginner wouldn't usually fully grasp what they are about, until they wrote a few small programs using the various concepts. Add to that, some of these programming concepts don't exist in AHK, and are in strongly typed compiled programming languages.

Return to “Off-topic Discussion”

Who is online

Users browsing this forum: No registered users and 28 guests