moin Edward,

I use a version check in the pdlpp sources:

use version;
my $pdl_version = version->parse($PDL::Version::VERSION);
my $propagate_badflag =
  $pdl_version >= '2.008' ? "propagate_badflag" : "propogate_badflag";

... a bit klunky, but it seems to work.

marmosets,
  Bryan

On Tue, Sep 15, 2015 at 2:31 PM, Edward Baudrez <edward.baud...@gmail.com>
wrote:

> Dear porters
>
>
>
> What would be the best way to check for the spelling of
> prop[oa]gate_badflag? I'm looking for a solution that would also work with
> pre-2.008 PDLs. I can't check for definedness of propagate_badflag, because
> that function seems to be defined at the C level (unless I'm not
> understanding correctly). Must I resort to a version check (PDL v2.008 or
> later)? If yes, how to implement it?
>
>
>
>
>
> Best regards
> Edward
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> pdl-devel mailing list
> pdl-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdl-devel
>
>


-- 
Bryan Jurish                           "There is *always* one more bug."
moocow.bov...@gmail.com         -Lubarsky's Law of Cybernetic Entomology
------------------------------------------------------------------------------
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to