salmanahmad / silo

The Silo Programming Language
0 stars 0 forks source link

Add special form for "getField" #106

Closed salmanahmad closed 10 years ago

salmanahmad commented 10 years ago

Right now I have to write this.a It perhaps would be nice to have a special form that will just ALOAD 0 .... This is useful for things like this.a = 5 for Structure subclasses which will force a copyForMutation.

salmanahmad commented 10 years ago

This is done in 0019305a97f06f8a3d68810f21a98268660331da. It uses an "assign" special form where you can pass in "false" to the last argument to make it NOT perform a willMutate during the access of `this``.