Jump to content

OOP and Lambdas Missing from AutoIt


gaxar77
 Share

Recommended Posts

I haven't used AutoIt in a long time. I'm planning to get back into it since I've read how much it has matured as a language. But from what I remember AutoIt is missing object-oriented programming and lambda expressions. Are there any plans to implement these in the future? Do you think AutoIt and its users would benefit from having these features?

I know there is AutoItObject which exploits COM to provide pseudo-OOP, but I would like to see real OOP built into AutoIt and also lambda functions. Most programming languages support these things. AutoIt is a great language, especially now, but its missing these things. I don't mean to start a debate or anything but I wonder if maybe these things should be implemented.

Maybe it's too much work right now? Maybe it's not feasible? What do you think?

Link to comment
Share on other sites

  • Moderators

Asked and answered (officially). If the direction is going to change, this is where it will be posted.

https://www.autoitscript.com/trac/autoit/wiki/AutoItNotOnToDoList

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

nice writing in that link... I loved the last bit "Asking for an addition to Opt() is the same as forfeiting your life as far as I'm concerned." LOL, so great

to the OP, you should always use the appropriate tech/language where it's needed. There is no one language to rule them all.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

This comes close I feel https://github.com/genius257/AutoItObject-Internal although com based its really flexible

And assigning functions to variables give you a lot of flexibility if you want for customizing logic/syntax

$a=classA_b()
$t=$a
$a=classA_a()
$t=$a

$a=classB_b()
$t=$a
$a=classB_a()
$t=$a

func classA_a()
    consolewrite("a_a" & @CRLF)
EndFunc
func classA_b()
    consolewrite("a_b" & @CRLF)
EndFunc
func classB_a()
    consolewrite("b_a" & @CRLF)
EndFunc
func classB_b()
    consolewrite("b_b" & @CRLF)
EndFunc

 

Link to comment
Share on other sites

On 9/29/2019 at 11:47 PM, gaxar77 said:

... lambda functions. Most programming languages support these things.

Most, really?

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

On 9/30/2019 at 5:41 PM, JLogan3o13 said:

The thread link for the OOP topic seems to be dead, does anyone know which topic it is?:

Quote

Object-Oriented syntax: For a lengthy discussion on object-oriented concepts and why AutoIt does not and will not have them, see here.

 

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...