Skip to content

Commit c012b2d

Browse files
committed
Future keyword warning
1 parent 62b98f3 commit c012b2d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/NEWS30.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Changed behavior in version 3.0.3 of the RWP\*Load Simulator
22

33
The syntax for opening files and pipelines has been enhanced with
4-
new operators: >=, >>=, <=, |= and =|.
4+
new operators: >=, >>=, <=, >|= and <|=.
55
These replace the previous behavior where the contents of the
66
concatenation being assigned to a file would be interpreted to
77
imply open for read, append, or as a pipeline respectively.
@@ -12,6 +12,10 @@ You can enable warnings when using the current approach via
1212
the $pre31fileassign:warn directive, and it is suggested
1313
you put this directive in your .rwloadsim.rwl startup file.
1414

15+
In a future release ```case```, ```when``` and ```switch``` will be keywords,
16+
and there is therefore a warning if you use these as identifiers.
17+
You should change your code to use different identifiers if you get this warning.
18+
1519
## Changed behavior in version 3.0.1 of the RWP\*Load Simulator
1620

1721
### Keywords initiating SQL

src/rwlerror.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,6 @@ RWLEDESC("You are using one of the operators used to open a file or pipeline to\
16021602
#define RWL_ERROR_RESERVED_FOR_FUTURE2 293
16031603
RWLERROR("'%s' will be a keyword in a future release", RWL_ERROR_WARNING)
16041604
RWLEDESC("You are using an identifier that in some future release will be a keyword.\n"
1605-
"You should change your code and use a different identifer as it otherwise will"
1605+
"You should change your code and use a different identifer as it otherwise will\n"
16061606
"cause a syntax error in the future")
16071607

0 commit comments

Comments
 (0)