Jump to content

grouping functs and Variables?


Recommended Posts

OK I take it the answer to my question is no  :(

<{POST_SNAPBACK}>

Hello codejunkie,

I think you want to use OOP style of programming? (Object Oriented)

Well, the beta-beta version of AutoIt does do COM-functions, but not OOP.

It is very difficult to implement. I don't think it will ever be implemented, because existing programming languages like Visual Basic or Java are more suitable for these kind of things.

Regards,

-Sven

Link to comment
Share on other sites

Hello codejunkie,

I think you want to use OOP style of programming?  (Object Oriented)

Well, the beta-beta version of AutoIt does do COM-functions, but not OOP.

It is very difficult to implement. I don't think it will ever be implemented, because existing programming languages like Visual Basic or Java are more suitable for these kind of things.

Regards,

-Sven

<{POST_SNAPBACK}>

Ok suppose it doesnt make much diffrence anyway just adds few '.' to my code no big deal
Link to comment
Share on other sites

  • 4 weeks later...

Have you considered using a common prefix to group variables and functions catagorically? In an alphabetic listing of functions (as rendered in SciTE), related functions will appear together.

For a simple example, say you wanted to build a "class" to define default values for message boxes or parameters of MsgBox(). All functions or global variables dealing with managing message boxes could begin with "MsgMgt_".

As in, the function:

MsgMgt_SetMsgBoxLocation($x, $y)

could set global variables:

$MsgMgt_MsgBoxLocation_x

$MsgMgt_MsgBoxLocation_y

True, it makes the code look more complicated, and it isn't nearly as efficient as classes and objects, but it does lend an organizing principle even to commonly named variables like x and y.

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...