Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Cray-like ptrs in IF 7,0+

akagm
Beginner
943 Views
dear ALL, please help...

I use cray-like pointers in CVF 6.0+ for dynamics sub calls in the next manner:
subroutine someSub()
end subroutine someSub

subroutine newSub()
end subroutine newSub

pointer (ptr, someSub)
...
ptr = Loc(newSub)

call someSub() !!! call newSub not someSub!


But in the IF 7.0 this doesn't work, because

"sub name as a pointee doesn't allowed here..."

But this method is very important for me:
mixed-language programming, dll etc...

what I must do?

thanks in advice...
0 Kudos
6 Replies
Steven_L_Intel1
Employee
943 Views
Wait for 8.0. Or, use something like this:

call callit(%val(ptr))
...
subroutine callit (rout)
external rout
call rout
end subroutine callit

Steve
0 Kudos
akagm
Beginner
943 Views
//Wait for 8.0. Or, use something like this...

really?
You'll remove these restrictions?

this will be great!

thank You
0 Kudos
Steven_L_Intel1
Employee
943 Views
8.0 will include the "pointer to procedure" extension of CVF as well as many other CVF features.

Steve
0 Kudos
akagm
Beginner
943 Views
and when this v8.0 would be released?
0 Kudos
Steven_L_Intel1
Employee
943 Views
December.

Steve
0 Kudos
akagm
Beginner
943 Views
good news...

thanks once more...
0 Kudos
Reply