Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
We have empty set ∅, then why not have π as well?
Not for parrot, to prevent heat death parsing times.
  • Loading branch information
lizmat committed Sep 15, 2014
1 parent 90288f9 commit de16265
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Num.pm
Expand Up @@ -229,6 +229,10 @@ my class Num does Real { # declared in BOOTSTRAP
my constant pi = 3.14159_26535_89793_238e0;
my constant e = 2.71828_18284_59045_235e0;

#?if !parrot
my constant π := pi;
#?endif

multi prefix:<++>(Num:D \a is rw) { # XXX
a = nqp::p6box_n(nqp::add_n(nqp::unbox_n(a), 1e0))
}
Expand Down

1 comment on commit de16265

@rurban
Copy link
Contributor

@rurban rurban commented on de16265 Oct 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.