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

Macro using unless block unusable #4216

Open
p6rt opened this issue May 4, 2015 · 5 comments
Open

Macro using unless block unusable #4216

p6rt opened this issue May 4, 2015 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 4, 2015

Migrated from rt.perl.org#125100 (status was 'stalled')

Searchable as RT125100$

@p6rt
Copy link
Author

p6rt commented May 4, 2015

From @hoelzro

The following macro​:

  macro assert($cond) {
  quasi {
  unless {{{$cond}}} {
  die "assertion failed";
  }
  }
  }

fails with the following error when used​:

  ===SORRY!===
  Cannot reference undeclared local 'pres_topic__1'

@p6rt
Copy link
Author

p6rt commented May 4, 2015

From @hoelzro

bad-macro.p6

@p6rt
Copy link
Author

p6rt commented May 12, 2015

@hoelzro - Status changed from 'new' to 'deleted'

@p6rt
Copy link
Author

p6rt commented May 12, 2015

@hoelzro - Status changed from 'deleted' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 26, 2016

@coke - Status changed from 'open' to 'stalled'

@p6rt p6rt added the compiler label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant