Top "Metaprogramming" questions

Metaprogramming is the capability to reprogram ones programming environment, as with macros or metaclasses.

Add method to metaclass

I'm just playing with the metaclass programming in Groovy. But suddenly I was facing a little problem which I just …

methods groovy metaprogramming metaclass
Can a C program modify its executable file?

I had a little too much time on my hands and started wondering if I could write a self-modifying program. …

c metaprogramming self-modifying
How to use define_method inside initialize()

Trying to use define_method inside initialize but getting undefined_method define_method. What am I doing wrong? class C …

ruby metaprogramming
Can someone explain the Class.superclass.class.superclass paradox?

It's probably not a paradox at all, but from a newbies perspective, it sure seems that way. > Class.superclass =&…

ruby metaprogramming
Ruby - method_missing

I'm trying to implement a method_missing for converting $ to other currencies, as in doing 5.dollars yields 5, 5.yen would yield 0.065 5.…

ruby metaprogramming method-missing
Is static metaprogramming possible in Java?

I am a fan of static metaprogramming in C++. I know Java now has generics. Does this mean that static …

java metaprogramming
How to list local-variables in Ruby?

def method a = 3 b = 4 some_method_that_gives # [a, b] end

ruby metaprogramming local-variables
Ruby’s “method_missing” in Python

Possible Duplicate: Python equivalent of Ruby's 'method_missing' Is there any technique available in Python for intercepting messages (method calls) …

python metaprogramming method-missing
Find out whether a C++ object is callable

Is it possible to write a type trait, say is_callable<T> which tells if an object has …

c++ metaprogramming traits typetraits
What do "reify" and "reification" mean in the context of (functional?) programming?

I read this term a lot in blogs about haskell and functional programming (specially in sigfpe's blog) but I don't …

haskell functional-programming metaprogramming terminology reification