Melvin Smith: # I'm confused on the intent of the following: # # Buffer *new_tracked_header(struct Parrot_Interp *interpreter, # size_t size) { # UNUSED (interpreter); # return (Buffer *)mem_sys_allocate(size); # } # # # A Buffer is a fixed size struct with void * for data, # however, this takes a # size # argument. # # I assume the intent is to allow casting from Buffer to other # tracked types?
The intent is that you should be able to have buffers of different sizes. For example, STRING is a type of buffer with tons of fields tacked on to the end of it. You should be able to treat STRINGs as Buffers, even in allocation. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) #define private public --Spotted in a C++ program just before a #include