function create at runtime

I

invincible

hi friends , how can I declare / create function during runtime similiar to
lambda in lisp.

thanks

Mohan
 
I

iceColdFire

::Hi..

Run time function creation is somewhat analogous to generating
interfaces according to access needs or context in which application is
run...

As far as I know , run time function declaration/creation is not
possible...as linker needs to resolves function calls before
execution....

Maybe you can try to use big heaps. One way might be to source copy
your function code into big heap(generated at runtime) and then use
assembly calls to direct IP to your heap address ....

:aacpp :)
 
J

Jerry Coffin

invincible said:
hi friends , how can I declare / create function during runtime similiar to
lambda in lisp.

You can't -- but you can create an object that overloads the function
call operator so it's syntactically similar to a function. The boost
lambda library is one possibility along this line.
 
I

Ioannis Vranos

invincible said:
hi how can i get details about boost library......

BTW, are you the same coder that got frozen in a relatively recent James Bond movie? :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top