summary refs log tree commit diff stats
path: root/web
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-03-18 02:01:52 +0200
committerZahary Karadjov <zahary@gmail.com>2017-04-06 00:46:18 +0300
commit02243410fd7ddb157cca2903b14b4897da865730 (patch)
treea7a0c918e25bf7d4d8d148ee00f271d7aa343a8e /web
parent6edb07091dafd4f0214c4aa2df8fc862d03e0a99 (diff)
downloadNim-02243410fd7ddb157cca2903b14b4897da865730.tar.gz
News items for previous commit
Diffstat (limited to 'web')
-rw-r--r--web/news/e031_version_0_16_2.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/news/e031_version_0_16_2.rst b/web/news/e031_version_0_16_2.rst
index a15e715d6..fd12bb822 100644
--- a/web/news/e031_version_0_16_2.rst
+++ b/web/news/e031_version_0_16_2.rst
@@ -49,7 +49,13 @@ Changes affecting backwards compatibility
   instead of signed integers.
 - In Nim identifiers en-dash (Unicode point U+2013) is not an alias for the
   underscore anymore. Use underscores and fix your programming font instead.
-
+- When the ``requiresInit`` pragma is applied to a record type, future versions
+  of Nim will also require you to initialize all the fields of the type during
+  object construction. For now, only a warning will be produced.
+- The Object construction syntax now performs a number of additional safety
+  checks. When fields within case objects are initialiazed, the compiler will
+  now demand that the respective discriminator field has a matching known
+  compile-time value.
 
 Library Additions
 -----------------