Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2013-01-31

| Channels | #pdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:14 Molaf_ joined #pdl
13:03 lungching joined #pdl
15:08 Molaf__ joined #pdl
19:20 lungching joined #pdl
20:46 vividsnow joined #pdl
21:02 vividsnow hello! https://gist.github.com/8f861f609939c9d55334 - why? )
21:20 vividsnow it seems that problem not in threads, because https://gist.github.com/8f861​f609939c9d55334#file-nothr-pl fails also
22:02 sivoais vividsnow: that has to do with making the Perl parser happy. Because you are using strict, it won't allow you to use those constants without the parser knowing what they are <http://perl5maven.com/barewords-in-perl>. You can make the code work by putting () after all of the GLUT_* constants.
23:05 jberger vividsnow, like sivoais said, in Perl "constants" are actually constant subs. as such if they are declared at runtime (require, import vs use) then just like other functions declared this way, you will have use ()
23:06 jberger if you would like you could pre-declare them by `use subs qw/GLUT_RGBA GLUT_DOUBLE GLUT_ALPHA GLUT_DEPTH/`
23:06 jberger in that way they are declared at build-time, but not defined until runtime, but now they look like barewords
23:06 jberger see p3rl.org/subs
23:07 jberger perhaps you know all this, but I'm just brain-dumping

| Channels | #pdl index | Today | | Search | Google Search | Plain-Text | summary