Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Backtracking.pm

by educated_foo (Vicar)
on May 10, 2002 at 16:05 UTC ( #165681=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Backtracking.pm
in thread Backtracking.pm

Yeah. This one has bothered me, too. I suppose you could do something like this (untested):

sub is(&) { return $_[0] } sub goal { ... } # ... goal 'foo' is { ... }
but it's not quite as nice. Option 2: write a source filter that takes
goal mygoal
and replaces it with
goal 'mygoal', sub
That might be a good way to go.

/s


Comment on Re: Re: Re: Backtracking.pm
Select or Download Code
Replies are listed 'Best First'.
Re: Re: Re: Re: Backtracking.pm
by Joost (Canon) on May 10, 2002 at 16:59 UTC
    Thanks for the tip, I used Filter::Simple, and it seems to do the trick :-)
    -- Joost downtime n. The period during which a system is error-free and immune from user input.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://165681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-02-06 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (211 votes), past polls