summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-01-10 00:33:32 +0100
committerAraq <rumpf_a@web.de>2012-01-10 00:33:32 +0100
commite7e3c451efa3207339eea01b8eba0b76dd4bfc91 (patch)
treec9d20905e0b116caca9f04152b90cf4f6067e4ee
parent4dcd7170aac93e17aa6cc3d8d9a067caf5e75bad (diff)
downloadNim-e7e3c451efa3207339eea01b8eba0b76dd4bfc91.tar.gz
removed '^ deprecated' message
-rwxr-xr-xcompiler/msgs.nim7
-rwxr-xr-xcompiler/semexprs.nim4
-rwxr-xr-xlib/system.nim2
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) {.