jed-users mailing list

[2009 Date Index] [2009 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: replace_match()


On 26.01.09, Jörg Sommer wrote:
> Hallo G.,

> "G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > define re_replace(pattern, rep)
> > {
> >    push_spot();
> >    EXIT_BLOCK {pop_spot();}

> That's not error save. You have to use an try‐finally construct.

Yes. But as I suppose it is most likely a user wants to see where the
replacement failed, I simply replaced the EXIT_BLOCK with a pop_spot() at
the end of the function.

Günter

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2009 date index] [2009 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]