Silverfrost Forums

Welcome to our forums

delegate in Fotran.NET

17 Sep 2008 10:54 #3829

I have a problem to create a new delegate in Fortran .Net. I do it c# like this

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

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

23 Sep 2008 10:23 #3842

I am afraid delegates are not supported within FTN95.

Please login to reply.