Skip to content

Support for non-positive integer keys #7

Description

@funnell

Hello,

I was trying out your library and noticed it didn't like integer keys <= 0.

  select type(key)                                                                                                                                                                       
  class is(key_base)                                                                                                                                                                     
    is_key_allowed = .true.                                                                                                                                                              
  type is(integer(I1P))                                                                                                                                                                  
    if (key>0) is_key_allowed = .true.                                                                                                                                                   
  type is(integer(I2P))                                                                                                                                                                  
    if (key>0) is_key_allowed = .true.                                                                                                                                                   
  type is(integer(I4P))                                                                                                                                                                  
    if (key>0) is_key_allowed = .true.                                                                                                                                                   
  type is(integer(I8P))                                                                                                                                                                  
    if (key>0) is_key_allowed = .true.                                                                                                                                                   
  type is(character(len=*))                                                                                                                                                              
    is_key_allowed = .true.                                                                                                                                                              
  endselect

Is there a reason why this is the case? Can it be changed?
Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions