From: Eduardo O. <edu...@gm...> - 2025-06-07 04:26:49
|
Hi list, This e-mail is a better version of this one: https://sourceforge.net/p/maxima/mailman/message/59187622/ I always had the impression that defstruct was just the core of something, and users were expected to write the rest... here is my most recent attempt to write that "rest". The core of my code is just this, "@@4"(structname,o,method,Args) := apply(concat(structname,"__",method), append([o],Args)); "@@" (o,method) := buildq([o,method], lambda([[Args]], "@@4"(op(o),o,method,Args))); infix("@@",200,201); and the code, with examples and screenshots, is here: http://anggtwu.net/eev-maxima.html#methods Cheers, Eduardo Ochs http://anggtwu.net/eev-maxima.html |