about summary refs log tree commit diff stats
path: root/arc/fork.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-13 14:32:21 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-13 14:36:18 -0800
commite36e7caffa6194135895844aae9df93d1af4b9f9 (patch)
tree9ed97c9ac3190034b8361c0937c4ba064eef4573 /arc/fork.mu
parentc4f5d4cf0b6f0d33994aac9d5fa29da1a46f7831 (diff)
downloadmu-e36e7caffa6194135895844aae9df93d1af4b9f9.tar.gz
2432 - first stab at making ingredients immutable
The rule is, an address ingredient is only modifiable if:
  a) it's also a product
  b) it's /contained-in some other ingredient+product

Only if an ingredient is a modifiable can you:
  a) call get-address or index-address on it (the only way to write to it)
  b) call other recipes that also return it in a product

I still don't check copies of the address. That's next.

Core mu passes this check, but none of the example apps do. edit/ and
sandbox/ are known to fail.
Diffstat (limited to 'arc/fork.mu')
0 files changed, 0 insertions, 0 deletions
='#n117'>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 171 172 173 174 175 176 177 178 179 180 181 182