[m-dev.] io__write and arrays

Tyson Richard DOWD trd at students.cs.mu.oz.au
Tue Apr 8 11:16:39 AEST 1997


> 
> It would be nice if `io__write' did something a bit more meaningful
> for arrays.  Currently it just prints the array's address in memory,
> which is not very helpful...

It would be nice to allow types defined in C to have some functions
provided that would 
	- do a deep copy of the type (allowed to call system deep
	  copy to copy mercury objects)
	- print the data somehow
	- do other cool things 

But this really requires some more pragmas, so that a user can
specify that a type is going to be defined in C, and that its
function for this is.... and its function for that it.... etc.

This goes in the TODO list under "C interface", and it says

'- better support for types defined in C, and documentation'

If you want to add this as an example, feel free.

-- 
       Tyson Dowd           #
                            #             Sign on refridgerator:
     trd at cs.mu.oz.au        #           Refrigerate after opening. 
http://www.cs.mu.oz.au/~trd #                  - C. J. Owen.



More information about the developers mailing list