ra’s avatarra’s Twitter Archive—№ 36,821

    1. added locals, which will eventually support let bindings, but they also enable zero-argument default constructors for value types. its not intuitive at all, but theyre actually not constructors, theyre a bytecode trick to call initobj on a reference to a local variable #jn
      oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
  1. …in reply to @ra
    initobj is a clr intrinsic that takes a reference and initializes all its fields to zero. you need to construct a temporary local variable in order to push a reference to it with ldloca.s ("load local address short")