I've just encountered a problem that has me absolutely flummoxed - I have some code that uses operator overloading to produce nested sets of objects, and on a smalll scale it works fine:
$logic = ($cA & $cB & $cC & $cD);
say '$cA & $cB & $cC & $cD is :', $logic->as_string;
>>> ((A and B and C and D or E) or F)
but if I try any more than 7 elements I get bizarre corrupted memory addresses in the objects:
here are some examples:
Can't locate object method "as_string" via package "InterMine::PathQue
+ry::ConstraintSet=HASH(0x87yt738)"
and
InterMine::PathQuery::ConstraintSet=HASH(0x8737;=8)
and
InterMine::PathQuery::ConstraintSet=HASH(0x8ae23s0)
and
InterMine::PathQuery::ConstraintSet=HASH(0x8uu6sw8)
you can see the code for the offending module here: http://pastebin.com/QN2sZN5G
and the associated code here:
http://pastebin.com/XwxDxJJH
I have never seen anything like this before - any ideas out there from the Monks?
Alex
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.