fn: is_private
[contents]

Contents

Syntax

The syntax for is_private calls is:

f++:  
is_private(variable)

n++:  
@is_private(variable)

Description

The is_private function takes a single variable or function as a parameter and returns whether the variable or function is private.

f++ example

Example of is_private being used with f++:

  1. :={private}(int, a)
  2. :=(int, b)
  3. console(is_private(a))
  4. console(is_private(b))

n++ example

Example of is_private being used with n++:

  1. @:={private}(int, a)
  2. @:=(int, b)
  3. @console(@is_private(a))
  4. @console(@is_private(b))