Commit b730736
committed
Make Variable@dims <- NULL reset to scalar
The dims setter early-returned on empty input, so resetting a variable
to scalar (NULL dims, per the class's own convention) silently kept the
stale dims. r2f-assign.R's deferred-mode path assigns
`var@dims <- value@value@dims` with a legitimately-NULL RHS and relied
on this working. Assign the attribute directly (the same S7 workaround
already used by the `r` property) to avoid recursing through the setter.1 parent c2ac3f0 commit b730736
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
0 commit comments