473,473 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

function create at runtime

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

thanks

Mohan
Jul 23 '05 #1
5 1914
::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 :-)

Jul 23 '05 #2
invincible wrote:
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.

--
Later,
Jerry.

The universe is a figment of its own imagination.

Jul 23 '05 #3
hi how can i get details about boost library......
"Jerry Coffin" <jc*****@taeus.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
invincible wrote:
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.

--
Later,
Jerry.

The universe is a figment of its own imagination.

Jul 23 '05 #4
invincible wrote:
hi how can i get details about boost library......

http://www.boost.org
--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #5
invincible wrote:
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? :-)

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
9
by: Derek Hart | last post by:
I wish to execute code from a string. The string will have a function name, which will return a string: Dim a as string a = "MyFunctionName(param1, param2)" I have seen a ton of people...
8
by: Lauren Wilson | last post by:
Hi Folks, We have a solid, five year old Access app that is suddenly behaving oddly after conversion to Access 2002/2003 format. Everything seems to run OK except for a few oddities. The code...
11
by: Marco Loskamp | last post by:
Dear list, I'm trying to dynamically generate functions; it seems that what I really want is beyond C itself, but I'd like to be confirmed here. In the minimal example below, I'd like to...
13
by: invincible | last post by:
hi friends , how can I declare / create function during runtime similiar to lambda in lisp. thanks Mohan
1
by: Kannan | last post by:
Hello, I know this has been answered before but I cannot seem to get this working for the life of me... Any help/pointers would be greatly appreciated. I am trying to call a set of C# functions...
56
by: Luke Matuszewski | last post by:
I am designing the library, which will hidden all its functions within singleton object ... So for clients they will use it like . eg. system.getElementWithId('ruler'); At library side, i...
4
by: alex | last post by:
I am so confused with these three concept,who can explained it?thanks so much? e.g. var f= new Function("x", "y", "return x * y"); function f(x,y){ return x*y } var f=function(x,y){
0
by: Sebastian | last post by:
Hello I develop my applications in Access 2002. My development system is running Windows XP SP2 and I have Microsoft Office XP Developer. Microsoft Office XP is at SP3. I used Inno Setup (great...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.