Skip to content

Commit 3eb693e

Browse files
author
Florian Thake
committed
CLEAN: finally removed deprecated CoreLibrary::ExitScript().
- Please, use _Exit val instead or directly throw teascript::control::Exit_Script from C++.
1 parent 4cf5c77 commit 3eb693e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Deprecation_and_Breaking_Changes.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ TeaScript list of deprecated parts
7575

7676
The following deprecated parts have been finally removed from this release:
7777

78+
The Core Library function CoreLibrary::ExitScript() has been finally removed.
79+
Please, use _Exit val instead or directly throw teascript::control::Exit_Script from C++.
80+
7881
--old-mutable-parameters command line option has been finnaly removed.
7982
For the case you want use a legacy dialect of TeaScript with default mutable parameters you need
8083
to change the used Dialect instance, see Dialect.hpp

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ NOTE: The dates are not the release dates, but a last commit date.
88
================
99
VERSION 0.16.0 (not released yet, pre-release)
1010
================
11+
CLEAN: finally removed deprecated CoreLibrary::ExitScript().
12+
- Please, use _Exit val instead or directly throw teascript::control::Exit_Script from C++.
13+
1114
UTIL: made tuple::foreach_element/foreach_named_element working with const and ...
1215
- ... mutable ValueObjects. If inner elements change to const and the provided
1316
functor takes a const ValueObject it will be called, otherwise nested const

include/teascript/CoreLibrary.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ class CoreLibrary
8383
return line;
8484
}
8585

86-
[[deprecated("Control flow exit from TeaScript code will not be supported anymore. Please, use _Exit val instead (or throw Exit_Script() directly from cpp code).")]]
87-
[[noreturn]] static void ExitScript( long long const code )
88-
{
89-
throw control::Exit_Script( code );
90-
}
91-
9286
static double Sqrt( double const d )
9387
{
9488
return std::sqrt( d );

0 commit comments

Comments
 (0)