#include <stdio.h> function hello(){ struct obj = { char *data = 'hello'} obj.add = obj_add(obj); return obj; }
function obj_add(obj){ function add(value){ obj.data += value; return obj; } } main(){ test = hello(); test.add('world'); printf(test.data); } I was thinking something like this maybe ? -- http://mail.python.org/mailman/listinfo/python-list