Good morning Jafar,
The changes you suggested worked a treat. Though I am still puzzled by
the values returned by the list in my original effort. I had a look at
the icode file and it appeared to have the correct values being put into
the list. If I can get some time later, I might do some further
investigation of this.
regards and thanks
Bruce Rennie
On 10/04/13 02:37, Jafar Al-Gharaibeh wrote:
Bruce,
The way you are doing it is exactly how I wished it could be done,
but as Clint said in his answer to me (c.foo) is not allowed, or it
does not mean what we think it means. This is all because the "."
operation has to go through extra work to resolve which class/object
you are working on. You can do some hacks to do whatever you want but
now that I understand what you are trying to accomplish better, I can
tell you how I dealt wit this before :).
Here is what you should do.
1- import lang
2- change your AvailableMethods to this: (find_method is part of the
package lang)
method AvailableMethods()
return [
find_method(self, "Size"),
find_method(self, "Rows"),
find_method(self, "Cols"),
find_method(self, "Row"),
find_method(self, "Col"),
find_method(self, "Copy"),
find_method(self, "CopyMatrix"),
find_method(self, "Transpose"),
find_method(self, "ToString"),
find_method(self, "ToList"),
find_method(self, "ToListCO"),
find_method(self, "SetDisplayWidth")
]
end
3- Get rid of
every g := globalnames() do write(f, ximage(variable(g)))
Let me know how it goes, or if this is not what you actually want.
Cheers,
Jafar
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group