Commit Graph

16 Commits (e918e9cddcfc9af483fa92dfcc160d92e2f8b073)

Author SHA1 Message Date
Slava Pestov e918e9cddc classes.struct: add more unit tests for clone method, and fix clone breakage when the struct class word is not a symbol 2009-08-30 21:01:44 -05:00
Slava Pestov 2dd3f5690d classes.struct: make <struct>, malloc-struct, and clone work in deployed images where C type info has been stripped out 2009-08-30 20:13:54 -05:00
Joe Groff be406fa964 fix alien.complex unboxer 2009-08-29 23:18:31 -05:00
Joe Groff 32f014a030 privatize classes.struct's shameful bits 2009-08-29 22:59:13 -05:00
Joe Groff 20aa00f8df implement clone on struct classes to copy the struct contents 2009-08-29 22:54:56 -05:00
Joe Groff 3e51bde484 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 7276fe44d7 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 4e7bada863 use calloc in malloc-struct for consistency with malloc-object and malloc-array 2009-08-29 17:17:25 -05:00
Joe Groff 80a5bf7138 support { type dimension } c-type syntax in STRUCT: definitions 2009-08-27 21:39:43 -05:00
Joe Groff 69e640c55b throw a friendlier error when attempting to create a struct without slots 2009-08-26 22:37:59 -05:00
Joe Groff 4bf4cacc4b make struct-prototype foldable so that <struct> compiles efficiently 2009-08-26 21:27:12 -05:00
Joe Groff 4b56fa8009 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 ad463795aa 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 f4c90fdabe bitwise equal? for struct objects 2009-08-26 18:05:38 -05:00
Joe Groff 24c2eaae01 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 784b8c04ce move classes.struct from extra to basis 2009-08-26 15:55:01 -05:00