Commit Graph

12 Commits (3a7e6b157f0b798403f36efecfdffab074603fd5)

Author SHA1 Message Date
Joe Groff 3a7e6b157f implement clone on struct classes to copy the struct contents 2009-08-29 22:54:56 -05:00
Joe Groff 400e01d390 change malloc-struct to initialize struct from initial values; add (malloc-struct) and (struct) words that leave their memory uninitialized 2009-08-29 22:40:13 -05:00
Joe Groff a0f96f3d55 refactor functors so that new functor syntax words can be added outside of functors vocab, and move STRUCT: functor syntax to classes.struct to break a circular dependency 2009-08-29 21:04:19 -05:00
Joe Groff 2203b0c9fa use calloc in malloc-struct for consistency with malloc-object and malloc-array 2009-08-29 17:17:25 -05:00
Joe Groff 5cd24e5002 support { type dimension } c-type syntax in STRUCT: definitions 2009-08-27 21:39:43 -05:00
Joe Groff 5cc1ce3d8a throw a friendlier error when attempting to create a struct without slots 2009-08-26 22:37:59 -05:00
Joe Groff f28b6ccf68 make struct-prototype foldable so that <struct> compiles efficiently 2009-08-26 21:27:12 -05:00
Joe Groff 629e8bc89b add a partial eval for memory>struct so that it compiles efficiently when the struct class is known 2009-08-26 21:18:19 -05:00
Joe Groff 8dbd25b6cd fix struct-array of struct class; inline memory>struct so the compiler can optimize a little better 2009-08-26 19:20:20 -05:00
Joe Groff 3bb895dcdf bitwise equal? for struct objects 2009-08-26 18:05:38 -05:00
Joe Groff e9a0c96563 box elements of struct-arrays when a struct class is used as the element type 2009-08-26 17:19:30 -05:00
Joe Groff 1bab289258 move classes.struct from extra to basis 2009-08-26 15:55:01 -05:00