Jump to content

Public/Private Functions


RAC
 Share

Recommended Posts

Hi folks,

I'm writing an "include" file which has a main procedure accessible to any file that does the #include.

But within my "include" file I also have several internal-only utility procedures, which I do NOT want to be accessible by the outside world.

In other languages, I would declare my main procedure to be Public, and my internal-only procedures to be Private.

Is there any way within AutoIt of doing this please?

(Yes I could split my "include" file into 2, with one being the Public part and t'other being the Private part. But I'd rather keep it all in one file for safety <g>.)

Ta muchly,

RAC

Edited by RAC
Link to comment
Share on other sites

You can always just use garble words for your utility functions to discourage other people for bothering to figure them out and use them.

That's the limit of a procedural language - you can't make objects; you can't restrict function access; you can't overload functions.

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