agent and Precursor

3 messages Options
Embed this post
Permalink
Y. Pei

agent and Precursor

Reply Threaded More More options
Print post
Permalink
Hi,

 

Is it possible to wrap a Precursor call into an agent so that it could be
passed around? I tried using "agent Precursor" directly but got a syntax
error.

 

Thanks,

M.P.



[Non-text portions of this message have been removed]

Daniel Furrer

Re: agent and Precursor

Reply Threaded More More options
Print post
Permalink
I guess that's not possible at the moment. You could however use repeated
inheritance if you need to redefine a feature but still access the precursor
elsewhere:

class A
inherits
B rename foo as foo_precursor end
B redefine foo end

Best regards,
Daniel

On Thu, Aug 20, 2009 at 3:50 PM, Y. Pei <[hidden email]> wrote:

>
>
> Hi,
>
> Is it possible to wrap a Precursor call into an agent so that it could be
> passed around? I tried using "agent Precursor" directly but got a syntax
> error.
>
> Thanks,
>
> M.P.
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]

Y. Pei

RE: agent and Precursor

Reply Threaded More More options
Print post
Permalink
Thanks.

 

I was just not sure whether repeated inheritance is overkilling the problem,
but after a second thought, there should be no performance penalty related
with this.

 

Regards,

M.P.

 

From: [hidden email]
[mailto:[hidden email]] On Behalf Of Daniel Furrer
Sent: Friday, August 21, 2009 12:10 AM
To: [hidden email]
Subject: Re: [eiffel_software] agent and Precursor

 

 

I guess that's not possible at the moment. You could however use repeated
inheritance if you need to redefine a feature but still access the precursor
elsewhere:

class A
inherits
B rename foo as foo_precursor end
B redefine foo end

Best regards,
Daniel

On Thu, Aug 20, 2009 at 3:50 PM, Y. Pei <[hidden email]
<mailto:maximilian.pei%40gmail.com> > wrote:

>
>
> Hi,
>
> Is it possible to wrap a Precursor call into an agent so that it could be
> passed around? I tried using "agent Precursor" directly but got a syntax
> error.
>
> Thanks,
>
> M.P.
>
> [Non-text portions of this message have been removed]
>
>
>

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]