Hello Waldek, Exactly what I was looking for. Thanks.
I thought only integer based indexing was allowed, and since Record is a FriCAS primitive I thought indexing by Symbol, or whatever, was not possible. - Greg Le mar. 14 mai 2024 à 22:41, Waldek Hebisch <de...@fricas.org> a écrit : > > On Tue, May 14, 2024 at 06:58:34PM +0200, Grégory Vanuxem wrote: > > I am not on a computer. > > > > Is it possible to get a property in Spad, like C++ for example, like > > ojb.truc? > > > > Not like a Record I have to check first. And not not a number > > It is not clear to me what you want. Note that in FriCAS _everything_ > visible outside a domain is a function. That includes "setters", > that is functions which as a side effect assign value to variables > or part of variables (in case of composite types). If your > function is called 'setelt!', then you can use assignment syntax > when calling such functions. > > Also, outside domains one can only access exported functionality. > I you need access to something internal, then you must first > export appropriate functions (and recompile the domain). > If you want you can add 'setelt!', including Record-like. > > -- > Waldek Hebisch > > -- > You received this message because you are subscribed to the Google Groups > "FriCAS - computer algebra system" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to fricas-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/fricas-devel/ZkPMYMb84nshl7BI%40fricas.org. -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAHnU2dY%2BUUQ9dMOMk05%2B6ZWiEXwi1p1oj6mUYNfd%2BpUjpY0PAw%40mail.gmail.com.