Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Packages, Libraries, and Mod... > Making Functions Private to a Module

Recipe 12.5. Making Functions Private to a Module

12.5.1. Problem

You want to make a function private to a package.

12.5.2. Solution

You can't. But you can make a private variable and store a reference to an anonymous function in it.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint