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

how to use type bound assignment

Li_Dong
Beginner
536 Views
Hi all,

I want to use type bound assigment, but I don't know how? Any idea?

Thanks,

DONG Li
0 Kudos
4 Replies
Steven_L_Intel1
Employee
536 Views
I don't know what you mean by "type bound assignment". Can you explain in more detail?
0 Kudos
Hirchert__Kurt_W
New Contributor II
536 Views
I don't know what you mean by "type bound assignment". Can you explain in more detail?

I assume he means a generic type-bound procedure associated with the assignment operation rather than a generic name or operator. In other words a type containing a statement something like

GENERIC :: ASSIGNMENT(=) => assign_proc_1, assign_proc_2, assign_proc_3

I have this vague recollection that ifort doesn't support generic type-bound procedures, yet. If that is the case, it would explain why the OP can't figure out how to do type-bound assignment in ifort.

-Kurt

0 Kudos
Steven_L_Intel1
Employee
536 Views
Correct - GENERIC type-bound procedures are not supported in 11.1.
0 Kudos
Li_Dong
Beginner
536 Views
Hi, Steve,

I found that, and I used module procedure interface for this purpose.

Thanks!

Best regards,

DONG Li
0 Kudos
Reply