View previous topic :: View next topic |
Author |
Message |
m.burkhardt
Joined: 02 Sep 2008 Posts: 26
|
Posted: Wed Sep 17, 2008 11:54 am Post subject: delegate in Fotran.NET |
|
|
I have a problem to create a new delegate in Fortran .Net.
I do it c# like this
Code: |
public delegate CallBackFunction(String str, Int16 n);
|
But how shold I do this in Fortran.NET?
I want to recommit a delegate within an ArrayList
like this
Code: |
public delegate void CallBackFunction(String str, Int16 n);
public CallBackFunction MyCallBackFunction;
System.Collections.ArrayList al = new System.Collections.ArrayList(10);
al.Add((Object)MyCallBackFunction);
Salford.Fotran.MyRoutine(al);
|
In this case I want to use the delegate within my Fortran Subroutine MyRoutine.
So how shoult I create/use the delegate in Fotran. I think about something like that:
OBJECT("SYstem.delegate") :: mydelegate
mydelegate = al[0]
Greetings
Michael |
|
Back to top |
|
 |
Andrew
Joined: 09 Sep 2004 Posts: 232 Location: Frankfurt, Germany
|
Posted: Tue Sep 23, 2008 11:23 am Post subject: |
|
|
I am afraid delegates are not supported within FTN95. |
|
Back to top |
|
 |
|