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

Support all dereferencing properly #78

Merged
merged 2 commits into from
Jun 9, 2020
Merged

Support all dereferencing properly #78

merged 2 commits into from
Jun 9, 2020

Conversation

xsawyerx
Copy link
Owner

@xsawyerx xsawyerx commented Jun 8, 2020

Also fixed #77 and closes #4.

The following are now supported:

     ${ ... }
     @{ ... }
     %{ ... }
     *{ ... }
    $#{ ... }

You can also have a space between these (which matches perl):

    $  { ... }
    @  { ... }
    %  { ... }
    *  { ... }
    $# { ... }

The following are NOT supported:

    $$foo;    # fails
    @$foo;    # fails
    %$foo;    # fails
    *$foo;    # fails
    $#$foo;   # fails

    # Nor are these supported
    &$foo()   # fails
    &{$foo}() # fails

If you want dereferencing a subroutine, you can use:

    $foo->() # works
@xsawyerx xsawyerx added bug capability A capability we need to support labels Jun 8, 2020
@xsawyerx xsawyerx requested a review from vickenty June 8, 2020 22:24
@xsawyerx xsawyerx self-assigned this Jun 8, 2020
@xsawyerx xsawyerx merged commit 878afa4 into master Jun 9, 2020
@xsawyerx xsawyerx mentioned this pull request Jun 9, 2020
@xsawyerx xsawyerx deleted the sawyer/prefix-deref branch June 9, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug capability A capability we need to support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dereferencing is not consistent
2 participants