Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2014-08-21

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

All times shown according to UTC.

Time Nick Message
00:48 drrho joined #pdl
01:12 drrho joined #pdl
01:47 jberger joined #pdl
02:32 drrho joined #pdl
03:04 drrho joined #pdl
05:06 drrho joined #pdl
10:10 drrho joined #pdl
15:25 dj joined #pdl
15:32 dj howdy.  I'd like to write code using PDL_Indx which falls back to long on older PDL's.  Is there a macro which I can use to determine if PDL_Indx is defined?
15:32 mohawk is there a reason not to just use PDL_Indx?
15:33 dj doesn't exist on older versions of PDL.  it's a typedef, so can't query for it via the C preproceesor
15:39 dj a pure Perl approach would work, as this is pp code which can get munged
15:47 sivoais dj: how about comparing the PDL version string?
15:47 sivoais the other way may be: grep { /PDL_IND/ } PDL::Types::typesrtkeys()
15:47 sivoais grep { $_ eq "PDL_IND" } PDL::Types::typesrtkeys() # might be better
15:50 dj sivoais: I like the PDL::Types approach; I'd rather test for functionality rather than version.  thanks
16:26 dj for the record, here's what I used: eval { typefld( 'PDL_IND', 'ctype' ) } || typefld( 'PDL_L', 'ctype' );
16:36 drrho joined #pdl
17:36 dj joined #pdl
17:59 chm joined #pdl
17:59 chm mohawk: chm will make the release when mohawk points him to a git repo/branch
17:59 chm jberger: been out, catching up on AB stuff soon
17:59 chm sivoais: thanks for the C-object thing from enlightenment devel---very nice!
17:59 chm mohawk: re "chm, where's my dev release of PDL with my EU::D support patch?"
17:59 chm mohawk: my question exactly, will push a dev release when I get a dev release
19:22 dj joined #pdl
19:50 dj joined #pdl

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