From 2062f9734bc955be896183790afc355aab428747 Mon Sep 17 00:00:00 2001 From: Raphaƫl Pinson Date: Tue, 10 Jun 2014 17:23:42 +0200 Subject: Add private() function --- README.markdown | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index e9ad53b..51adefe 100644 --- a/README.markdown +++ b/README.markdown @@ -725,6 +725,27 @@ Will return: ['pa','pb','pc'] - *Type*: rvalue + +private +------- +This function sets the current class or definition as private. +Calling the class or definition from outside the current module will fail. + +*Examples:* + + private() + +called in class `foo::bar` will output the following message if class is called +from outside module `foo`: + + Class foo::bar is private + +You can specify the error message you want to use as a parameter: + + private("You're not supposed to do that!") + +- *Type*: statement + range ----- When given range in the form of (start, stop) it will extrapolate a range as -- cgit v1.2.3