summary refs log tree commit diff stats
path: root/tinyc
diff options
context:
space:
mode:
authorReimer Behrends <behrends@gmail.com>2013-11-29 02:21:47 +0100
committerReimer Behrends <behrends@gmail.com>2013-12-01 19:15:43 +0100
commit68b7779bc7582ceb0bce0fd8fa79a91c17498b2d (patch)
treeddce0b88c8e8105783bff68086ecbdeec4969726 /tinyc
parentb893bd074f9e90f517c3f84037f92f89ab6fbad3 (diff)
downloadNim-68b7779bc7582ceb0bce0fd8fa79a91c17498b2d.tar.gz
Fixes various issues with shallow copying.
* The {.shallow.} pragma is now properly respected for objects and
  tuples that are not handled by genGenericAsgn(). Mirroring the
  decision in generic assignments, whether an assignment is shallow
  depends on the destination of the assignment, but not the source.
* String literals and complex inline constants are now properly assigned
  a location kind of locData.
* Assignments from a locData source will now force deep copying to
  occur, even if shallowCopy or {.shallow.} is being used. This
  avoids potential crashes from `shallowCopy s, "xxx"` or from
  `shallowCopy t, ("a", "b")`.
Diffstat (limited to 'tinyc')
0 files changed, 0 insertions, 0 deletions
ef='#n108'>108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170