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
Principiante
945 Vistas
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 Respuestas
Steven_L_Intel1
Empleados
945 Vistas
Wait for 8.0. Or, use something like this:

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

Steve
akagm
Principiante
945 Vistas
//Wait for 8.0. Or, use something like this...

really?
You'll remove these restrictions?

this will be great!

thank You
Steven_L_Intel1
Empleados
945 Vistas
8.0 will include the "pointer to procedure" extension of CVF as well as many other CVF features.

Steve
akagm
Principiante
945 Vistas
and when this v8.0 would be released?
Steven_L_Intel1
Empleados
945 Vistas
December.

Steve
akagm
Principiante
945 Vistas
good news...

thanks once more...
Responder