Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for non-positive integer keys #7

Open
funnell opened this issue Oct 9, 2019 · 0 comments
Open

Support for non-positive integer keys #7

funnell opened this issue Oct 9, 2019 · 0 comments

Comments

@funnell
Copy link

funnell commented Oct 9, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant