I know that in Ruby you can dynamically add and change a class method at runtime. what about another language? what is C #, can any method be changed or added in this language and ... at runtime and dynamically?
I think you are looking for prototype inheritance . A list of languages ββis mentioned on the same wikipedia page.
There is the same question that you can look at.
, # .
# 4.0 # - Expando object. , , ( , ) .
: .NET, VB.Net F #.
, #, , , , ( ) .
foo.jump(42);
, foo , jump, .
foo
jump
# dynamic, , , , .
dynamic
, , Ruby, ( ).
, JavaScript , , Ruby.
Python - : Python:
Lisp : http://en.wikipedia.org/wiki/Common_Lisp_Object_System "CLOS , , , . CLOS " "( ), change-class. CLOS , ."
# 4 , / .
Source: https://habr.com/ru/post/1762170/More articles:Put a button in ListCtrl - wxPython - pythonCombining multiple dlls in 1 - c ++Unable to import PyObjC CoreData module when using mod_wsgi with Apache - djangohow to update entry in cakephp - phpIs it good to use 2 Javascript libraries on one HTML page? - javascriptRaise NSDecimalNumber to Negative Power - iphoneAdding Google Maps Support (API V3) to Ruby on Rails - apiiphone.png image not showing on device - iphoneDjango form without required fields - djangogoogle bot rel = "nofollow" how long to stop after - googlebotAll Articles