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

Crude implementation of $*HOME #406

Merged
merged 2 commits into from Apr 14, 2015
Merged

Crude implementation of $*HOME #406

merged 2 commits into from Apr 14, 2015

Conversation

jonathanstowe
Copy link
Contributor

Currently we get:

say $_HOME;
Dynamic variable $_HOME not found
in method gist at src/gen/m-CORE.setting:15985
in sub say at src/gen/m-CORE.setting:18823
in block at :1

homedir("/tmp");
Dynamic variable $*HOME not found
in method at src/gen/m-CORE.setting:15989
in any find_method_fallback at src/gen/m-Metamodel.nqp:2908
in any find_method at src/gen/m-Metamodel.nqp:1052
in sub homedir at src/gen/m-CORE.setting:18988
in block at :1

This fixes that in a somewhat naive way.

I'm aware that there is some code in newio that does this, but this is
just to get it working somewhat :)

Currently we get:

> say $*HOME;
Dynamic variable $*HOME not found
  in method gist at src/gen/m-CORE.setting:15985
  in sub say at src/gen/m-CORE.setting:18823
  in block <unit> at <unknown file>:1

> homedir("/tmp");
Dynamic variable $*HOME not found
  in method <anon> at src/gen/m-CORE.setting:15989
  in any find_method_fallback at src/gen/m-Metamodel.nqp:2908
  in any find_method at src/gen/m-Metamodel.nqp:1052
  in sub homedir at src/gen/m-CORE.setting:18988
  in block <unit> at <unknown file>:1

This fixes that in a somewhat naive way.

I'm aware that there is some code in newio that does this, but this is
just to get it working somewhat :)
lizmat added a commit that referenced this pull request Apr 14, 2015
Crude implementation of $*HOME
@lizmat lizmat merged commit c752892 into rakudo:nom Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants