Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Algorithm::Treap (code)

by Anonymous Monk
on Sep 07, 2003 at 21:27 UTC ( #289623=note: print w/ replies, xml ) Need Help??

in reply to Algorithm::Treap (code)
in thread Algorithm::Treap

Uh oh (what's going on?):

Subroutine import redefined at line 67.
Subroutine heap_lt redefined at line 127.
Subroutine key_lt redefined at line 128.
Subroutine key_gt redefined at line 129.
Subroutine new redefined at line 131.
Subroutine find_path_to_node redefined at line 184.
Subroutine find_node redefined at line 209.
Subroutine _shift_up redefined at line 241.
Subroutine _shift_down redefined at line 316.
Subroutine Store redefined at line 410.
Subroutine Delete redefined at line 484.
Subroutine Exists redefined at line 517.
Subroutine Clear redefined at line 526.
Subroutine Firstkey redefined at line 551.
Subroutine Nextkey redefined at line 565.
Subroutine Fetch redefined at line 579.
Subroutine FetchUser redefined at line 586.
Subroutine DESTROY redefined at line 598.
Subroutine count redefined at line 611.
Subroutine left redefined at line 614.
Subroutine right redefined at line 617.
Subroutine root redefined at line 620.
Subroutine _sub_as_list redefined at line 622.
Subroutine breadth_first redefined at line 631.
Subroutine in_order redefined at line 676.
Subroutine rev_order redefined at line 690.
Subroutine heap_order redefined at line 705.
Subroutine _heap_order_recurse redefined at line 715.
Subroutine top redefined at line 764.
Subroutine extract_top redefined at line 774.
Subroutine print_order redefined at line 788.
Subroutine __dump redefined at line 810.
Subroutine dump_vert redefined at line 817.
Subroutine __center redefined at line 821.
Subroutine dump_tree redefined at line 840.
Subroutine Tied_Hash redefined at line 913.
Subroutine FETCH redefined at line 924.
Subroutine STORE redefined at line 929.
function 'new' already defined in package Treap::_Node at line 950
BEGIN failed--compilation aborted at line 958.

Comment on Re: Algorithm::Treap (code)
Replies are listed 'Best First'.
Re: Re: Algorithm::Treap (code)
by demerphq (Chancellor) on Sep 07, 2003 at 23:49 UTC

    Uh oh (what's going on?):

    I dont know. This doesnt make sense to me. Obviously it doesnt happen here, and at least one other person has had the code pass all tests. Can you double check that you copied the code correctly?


    <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...
      If is in the current directory, it doesn't work, but if I am not, it works. Very weird.

        Ok, im totally baffled. For a while I had the same issue as you. Now with the latest code it seems to work fine. But the really worrying thing is now I dont have a clue what I changed to make it so. As far as I cant tell nothing drammatic. And ive not been able to recreate the error again. Its very perplexing. Please can you redownload the scratchpad and run it as is (including the test code in the DATA section) from the same directory?

        Cheers and thanks for the heads up about this. It seems there is weirdness afoot.


        <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

        Wow. Is that ever weird. I _do_not_ understand whats going on here at all.

        Maybe some kind monk will explain?


        <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...
      Perl 5.6, Windows NT ActivePerl Build 633. I didn't copy anything, I clicked the download code link, and saved as.

        Interesting and perplexing. When I downloaded the code as you describe and ran it, it work fine, except for some complaints about some things being used only once. Yet when I run the raw code I have here the same doesn't happen. Im curious what happens if you put it in the correct location in the site/lib tree? Also, you should realize that the download code will actually wrap both code sections into one file. So you should extract the other part which is the test code. Although in this case it is after the __DATA__ line and shouldnt matter. Also those used only once errors only occur on the downloaded code and not my working copy. Weird. Anyway, im posting an update to the code to make the only once at a time errors go away.


        <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-10-04 15:38 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (103 votes), past polls