Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

safety.fz


# This file is part of the Fuzion language implementation.
#
# The Fuzion language implementation is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, version 3 of the License.
#
# The Fuzion language implementation is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License along with The
# Fuzion language implementation.  If not, see <https://www.gnu.org/licenses/>.


# -----------------------------------------------------------------------
#
#  Tokiwa Software GmbH, Germany
#
#  Source code of Fuzion standard library feature safety
#
#  Author: Fridtjof Siebert (siebert@tokiwa.software)
#
# -----------------------------------------------------------------------

# safety -- condition qualifier for conditions that are required for safety
#
# safety is a condition qualifier that is used for conditions that are
# absolutely required to ensure safety.
#
# This must never be disabled if safety is of any concern. Applications
# run with safety disabled typically have security vulnerabilities that
# allow system takeover via manipulated input data.
#
# Currently, the value of this can be controlled by setting the fuzion.safety
# Java property when calling the fz tool, for example like this:
#
#     FUZION_JAVA_OPTIONS="-Dfuzion.safety=off" fz ex_safety.fz
#
# If the program is compiled, not interpreted, then the value of this option
# at compile time will be used.
#
public safety bool => intrinsic_constructor