Below is a small program that worked for me. Maybe you are missing
"invocable all" ? The program didn't work until I added it at the top.

invocable all
procedure main()
       p:= \proc("foo") | stop("don't know foo")
       p()
end
procedure foo()
      write("Unicon")
end

Hope this helps!
Jafar



On Sun, May 22, 2011 at 8:13 PM, David Gamey <david.ga...@rogers.com> wrote:

> Folks,
>
> I was trying to construct function references dynamically and was surprised
> that it doesn't seem to work.  I want to calculate the name of a
> function/procedure and then call it.
>
> Neither proc nor variable would return the procedure if I do something
> like:
>
>    p := "X_123"
>    proc(p)
>    variable(p)
>
>    procedure X_123(); ....; end
>
> The documentation isn't quite specific enough to say if one of these should
> work or not.
>
> If neither of these can do this, I don't see another way to accomplish
> this.
>
>
> Using: Unicon Version 12.0.  March 06, 2011 under Windows 7/64 bit.
>
> Thanks
>
> David
>
>
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its
> next-generation tools to help Windows* and Linux* C/C++ and Fortran
> developers boost performance applications - including clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Unicon-group mailing list
> Unicon-group@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>


-- 
"Let there be no compulsion in religion: Truth stands out clear from error"
[The Holy Qur'an 2:256]

"Injustice anywhere is a threat to justice everywhere"    Dr. King
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to