I think I know what is going on! There is a problem in the code! We forgot
that referencing a method name is "undefined" in Unicon. Thus we were
getting an undefined behavior.

Bruce, do you remember a while ago when we discussed (at the  Unicon's
mailing list here)  what you need to do to get to have an "actual"
reference to a method?

So this not exactly a bug, but maybe there should be a  warning for it.

--Jafar




On Tue, Sep 3, 2013 at 11:34 AM, Bruce & Breeanna Rennie <
bren...@dcsi.net.au> wrote:

> Thank you Gentlemen,
>
> For a period of time there, I was going round the twist trying to find
> the problem in my code.
>
> Steve, thank you for the even simpler example of the problem arising.
>
> regards
>
> Bruce Rennie
> On 09/04/2013 02:08 AM, Jafar Al-Gharaibeh wrote:
> > Steve,
> >
> >   What makes this even more interesting is that the call to f() has
> > vanished! I expected to see:
> >
> >  "inside f"
> >
> > in your output, but it is missing. So, not only there is a call to m2
> > where it should only be a reference, but there is a missing call to f().
> >
> > Definitely there is something to be fixed there.
> >
> > --Jafar
> >
> >
> >
> >
> >
> >
> > On Tue, Sep 3, 2013 at 9:44 AM, Steve Wampler <swamp...@noao.edu
> > <mailto:swamp...@noao.edu>> wrote:
> >
> >     On 09/03/2013 03:55 AM, Bruce & Breeanna Rennie wrote:
> >     > If you have a look at the following code, you will see that on
> >     the call
> >     > to the class Test, a call is made to method m1. Within this
> >     method, a
> >     > reference is made to method m2 as a parameter to ximage.
> >     ....
> >     > I hope there is enough detail here to solve the problem.
> >     >
> >     > regards
> >     >
> >     > Bruce Rennie
> >     >
> >     > PS. Please confirm that this is an actual error and that I have not
> >     > misinterpreted what should be happening.
> >
> >     I would be amazed if this were anything *but* an error.  Here's a
> >     reduced
> >     case that shows the same problem:
> >     ---------------------------------
> >     procedure main()
> >          t := Test()
> >     end
> >
> >     procedure f(g)
> >         write("inside f")
> >     end
> >
> >     class Test()
> >
> >          method m2()
> >              write("this is method 2")
> >          end
> >
> >     initially()
> >          f(m2)
> >     end
> >     -------------------------------
> >     which outputs:
> >     -------------------------------
> >     ->foo
> >     this is method 2
> >     ->
> >     --------------------------
> >
> >     --
> >     Steve Wampler -- swamp...@noao.edu <mailto:swamp...@noao.edu>
> >     The gods that smiled on your birth are now laughing out loud.
> >
> >
> ------------------------------------------------------------------------------
> >     Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
> more!
> >     Discover the easy way to master current and previous Microsoft
> >     technologies
> >     and advance your career. Get an incredible 1,500+ hours of
> >     step-by-step
> >     tutorial videos with LearnDevNow. Subscribe today and save!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> >     _______________________________________________
> >     Unicon-group mailing list
> >     Unicon-group@lists.sourceforge.net
> >     <mailto:Unicon-group@lists.sourceforge.net>
> >     https://lists.sourceforge.net/lists/listinfo/unicon-group
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> > Discover the easy way to master current and previous Microsoft
> technologies
> > and advance your career. Get an incredible 1,500+ hours of step-by-step
> > tutorial videos with LearnDevNow. Subscribe today and save!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> >
> >
> > _______________________________________________
> > Unicon-group mailing list
> > Unicon-group@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Unicon-group mailing list
> Unicon-group@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/unicon-group
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to