Question : ring test if the object class contains a method or not
Answered by : azzeddine-remmal
ismethod(object,cMethodName) --> Returns True if the object class contains the method
Source : https://ring-lang.github.io/doc1.17/metaprog.html | Last Update : Fri, 27 May 22
Question : ring test if the object class contains a method or not
Answered by : azzeddine-remmal
o1 = new point
see ismethod(o1,"print") + nl # print 1
mylist = []
mylist + new point
see ismethod(mylist[1],"print") + nl # print 1
class point x y z func print see x + nl + y + nl + z + nl
Source : https://ring-lang.github.io/doc1.17/metaprog.html | Last Update : Fri, 27 May 22