diff options
-rwxr-xr-x | compiler/msgs.nim | 7 | ||||
-rwxr-xr-x | compiler/semexprs.nim | 4 | ||||
-rwxr-xr-x | lib/system.nim | 2 |
3 files changed, 5 insertions, 8 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index ac884538d..3865a0c7a 100755 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -100,7 +100,7 @@ type warnDeprecated, warnConfigDeprecated, warnSmallLshouldNotBeUsed, warnUnknownMagic, warnRedefinitionOfLabel, warnUnknownSubstitutionX, warnLanguageXNotSupported, warnCommentXIgnored, - warnXisPassedToProcVar, warnDerefDeprecated, warnAnalysisLoophole, + warnXisPassedToProcVar, warnAnalysisLoophole, warnDifferentHeaps, warnWriteToForeignHeap, warnUser, hintSuccess, hintSuccessX, @@ -338,7 +338,6 @@ const warnLanguageXNotSupported: "language \'$1\' not supported [LanguageXNotSupported]", warnCommentXIgnored: "comment \'$1\' ignored [CommentXIgnored]", warnXisPassedToProcVar: "\'$1\' is passed to a procvar; deprecated [XisPassedToProcVar]", - warnDerefDeprecated: "p^ is deprecated; use p[] instead [DerefDeprecated]", warnAnalysisLoophole: "thread analysis incomplete due to unkown call '$1' [AnalysisLoophole]", warnDifferentHeaps: "possible inconsistency of thread local heaps [DifferentHeaps]", warnWriteToForeignHeap: "write to foreign heap [WriteToForeignHeap]", @@ -359,12 +358,12 @@ const hintUser: "$1 [User]"] const - WarningsToStr*: array[0..17, string] = ["CannotOpenFile", "OctalEscape", + WarningsToStr*: array[0..16, string] = ["CannotOpenFile", "OctalEscape", "XIsNeverRead", "XmightNotBeenInit", "Deprecated", "ConfigDeprecated", "SmallLshouldNotBeUsed", "UnknownMagic", "RedefinitionOfLabel", "UnknownSubstitutionX", "LanguageXNotSupported", - "CommentXIgnored", "XisPassedToProcVar", "DerefDeprecated", + "CommentXIgnored", "XisPassedToProcVar", "AnalysisLoophole", "DifferentHeaps", "WriteToForeignHeap", "User"] HintsToStr*: array[0..13, string] = ["Success", "SuccessX", "LineTooLong", diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index b11ff353c..8c6c86ef6 100755 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1267,9 +1267,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = of nkCurly: result = semSetConstr(c, n) of nkBracket: result = semArrayConstr(c, n) of nkLambda: result = semLambda(c, n) - of nkDerefExpr: - Message(n.info, warnDerefDeprecated) - result = semDeref(c, n) + of nkDerefExpr: result = semDeref(c, n) of nkAddr: result = n checkSonsLen(n, 1) diff --git a/lib/system.nim b/lib/system.nim index 2eef4d408..59e95cf13 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -819,7 +819,7 @@ const var programResult* {.exportc: "nim_program_result".}: int ## modify this varialbe to specify the exit code of the program - ## under normal circumstances. when the program is terminated + ## under normal circumstances. When the program is terminated ## prematurelly using ``quit``, this value is ignored. proc quit*(errorcode: int = QuitSuccess) {. |