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

final prevents modification of other subpath #164

Open
stdweird opened this issue Aug 11, 2017 · 5 comments
Open

final prevents modification of other subpath #164

stdweird opened this issue Aug 11, 2017 · 5 comments
Labels

Comments

@stdweird
Copy link
Member

stdweird commented Aug 11, 2017

object template t;

final "/a/b/c" = 1;
"/a" = {
    SELF['e'] = 2;
    SELF;
};

gives

evaluation error [/tmp/t.pan:4.1-7.2]
/a cannot be modified; /a/b/c is marked as final
>>> call stack trace 
>>> [/tmp/t.pan:4.1-7.2]
>>> ====================

this can be further reduced to following code that fails with same error

final "/a/b/c" = 1;
"/a" = {SELF};
@stdweird stdweird added the bug label Aug 11, 2017
@stdweird
Copy link
Member Author

@ned21 i labeled this as a bug

@stdweird
Copy link
Member Author

this is probably due to my limited understanding what SELF is.
i always assumed that SELF was some form of pointer-to, and eg "/a" = {SELF;}; is a noop.

@jrha
Copy link
Member

jrha commented Apr 13, 2018

@stdweird did this get fixed somewhere? Or is it a non-issue?

@stdweird
Copy link
Member Author

no, it's quite complicated to solve.

@jrha
Copy link
Member

jrha commented Apr 13, 2018

😨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants