1. pointer question

is it possible to have pointers to functions or procedure
like in C/C++??

I know about the routine_id function but I need a less
complicated way of executing functions and procedures
for OOP techniques I'm creating.
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view message » categorize

2. Re: pointer question

-- I know about the routine_id function but I need a less
-- complicated way of executing functions and procedures
-- for OOP techniques I'm creating.

The answer is there is no easy way.

new topic     » goto parent     » topic index » view message » categorize

3. Re: pointer question

At 06:32 PM 15-03-1999 , you wrote:
>is it possible to have pointers to functions or procedure
>like in C/C++??
>
>I know about the routine_id function but I need a less
>complicated way of executing functions and procedures
>for OOP techniques I'm creating.

Not to my knowledge. I would be cool if we could say:

procedure a()
end procedure

procedure b     -- Declare variable of type procedure

b = a
b()

I don't think RDS's Euphoria will ever support it. That kind of syntax
makes much more sense than routine_id.


Regards,
          Daniel  Berstein
         [ daber at pair.com ]

new topic     » goto parent     » topic index » view message » categorize

4. Re: pointer question

> -- I know about the routine_id function but I need a less
> -- complicated way of executing functions and procedures
> -- for OOP techniques I'm creating.

What precisely is the reason you need it ?

First of all...

my_object = call_func (my_object[MY_METHOD], {my_object})

Isn't that complicated. Secondly:

my_object = my_method (my_object)

works as well. Or is the namespace the issue you're dealing with ?
If so the above won't help much, since the constant MY_METHOD can't be a
constant if you need mutual recursion between the
objects. The constants of at least one of the object definitions should then be
integers, and assigned a value at a latter
stage.

Ralf

new topic     » goto parent     » topic index » view message » categorize

5. Re: pointer question

No, the only thing you can have in Euphoria is the routine ID of a =
function or procedure.

Have you checked out the Euphoria web page? They have a number of =
packages that aid in OOP development (including mine... blink ). From what =
I can tell, they all still have to use routine_id in some fashion to get =
what you want done, but at least you might find the kind of functions =
you need already written.

The URL is: http://members.aol.com/FilesEu/

Hope this helps,


Rod Jackson

----------
From:   Vimal Naran[SMTP:pcscope at hotmail.com]
Sent:   Monday, March 15, 1999 4:32 PM
To:     EUPHORIA at LISTSERV.MUOHIO.EDU
Subject:        pointer question

is it possible to have pointers to functions or procedure
like in C/C++??

I know about the routine_id function but I need a less
complicated way of executing functions and procedures
for OOP techniques I'm creating.
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu