Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMIR.java:44-47: The current implementation is very... #4

Closed
0pdd opened this issue Jul 2, 2021 · 8 comments
Closed

XMIR.java:44-47: The current implementation is very... #4

0pdd opened this issue Jul 2, 2021 · 8 comments
Labels
bug Something isn't working pdd

Comments

@0pdd
Copy link
Member

0pdd commented Jul 2, 2021

The puzzle 1-408fd3a6 from #1 has to be resolved:

* @todo #1:1h The current implementation is very primitive and doesn't
* support the case of fetching an object with a locator longer
* than just something inside \Phi. Try to make an object with children
* and fetch a child.

The puzzle was created by @yegor256 on 02-Jul-21.

Estimate: 60 minutes, role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

@0pdd 0pdd added bug Something isn't working pdd labels Jul 2, 2021
@mximp
Copy link
Contributor

mximp commented Nov 28, 2022

@yegor256 does this belong to some other repo now? I can't locate file XMIR.java in polystat repository.

@yegor256
Copy link
Member

@mximp yes, we moved it to eo repo

@mximp
Copy link
Contributor

mximp commented Nov 28, 2022

@yegor256 actually, I just realised it was renamed to Program.
The puzzle still exists.

@mximp
Copy link
Contributor

mximp commented Nov 28, 2022

@yegor256 can you please elaborate on this puzzle.
I just run the test for a program:

+package org.polystat

[a b] > test
  add. > @
    div. a b
    div.
      div. b a
      div.
        five
        a

  [] > five
    5 > @

Fetching program.apply("\\Phi.test.five") gives the following result which seems correct:

<o line="12" name="five" pos="2">
  <o base="org.eolang.int" data="int" line="13" name="@" pos="4">5</o>
</o>

What is the expected behaviour/case?

@yegor256
Copy link
Member

@mximp try to put test and five in different files

@mximp
Copy link
Contributor

mximp commented Nov 28, 2022

@yegor256 The following input:

+package org.polystat

[] > five
  5 > @
+package org.polystat

+alias org.polystat.five

[a b] > test
  add. > @
    div. a b
    div.
      div. b a
      div.
        fv
        a

  five > fv

gives correct output for program.apply("\\Phi.test.fv"):

<o base="org.polystat.five" line="14" name="fv" pos="2"/>

@yegor256
Copy link
Member

@mximp maybe it's time to close this ticket than

@0pdd
Copy link
Member Author

0pdd commented Nov 28, 2022

The puzzle 1-408fd3a6 has disappeared from the source code, that's why I closed this issue.

@0pdd 0pdd closed this as completed Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pdd
Projects
None yet
Development

No branches or pull requests

3 participants