soccer jersey forums.silverfrost.com :: View topic - Beware of using SIZE() when building windows.
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Beware of using SIZE() when building windows.

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Kenneth_Smith



Joined: 18 May 2012
Posts: 709
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Tue Jul 05, 2022 10:13 am    Post subject: Beware of using SIZE() when building windows. Reply with quote

I was rather perplexed by this one, and one for others to be aware of. It's all explained in the documentation for "size".

Code:
program test
implicit none
character(len=17), parameter  :: armour_layers(3) = (/'Single wire layer',&
                                                      'Double wire layer',&
                                                      'Solid            '/)
integer                       :: armour_layers_selected = 1
integer iw
!
!   Fails when compiled with x64 if the kind specifier for SIZE is absent
!
    iw = winio@('Armouring%ta%`bg[white]%`ls',       armour_layers, &
                                                     size(armour_layers,kind=3), &
                                                     armour_layers_selected)
end
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group