Welcome to APLNext Sign in | Join | Help
in
Community Website
Blogs Forums

A webcast suggestion and some observations.

Last post 12-19-2006, 3:13 PM by Fred.Waid. 1 replies.
Sort Posts: Previous
  • A webcast suggestion and some observations.

     12-01-2006, 7:55 PM

    Hi I have a suggesting and several issues to report.

     

    (1) A suggestion for a future webcast.  

    Id like to see demonstrations of passing multi-deminsional as well as heterogenous parameters and results between Visual APL and both APL+Win and C# assmeblies.

    For example suppose I had a Visual APL utility that would take two numeric parameters and return their sum.  The parameters might be any numeric type float, double, integer and any compatible shape (i.e. both 2D matrices or a matrix and a scalar).

    I assume this requires multiple overloads to handle a variety of cases from C#.   I expected/hoped a single untyped overload to work with APL+Win.  My attempt to try this got this error:

    []WI ERROR: mscorlib exception 80004002 Unable to cast object of type 'VisualCielo.Numeric.cvar' to type 'System.IConvertible'.

          X <assign> MathUtil []wi 'XPLUS' a b

               ^

     

    (2)

    From Cielo should we be able to do stuff like:

          x←1

          " This is the answer: ",x

       This is the answer:

     

    In APL+Win this would have produced:

          x←1

          " This is the answer: ",x

      This is the Answer:  1

     

    (3)

    APL system variables like ⎕io, ⎕ct, ⎕dbz, ⎕dbzv don’t seem to be localized in functions.  Can they be?

     

    (4)

    The legacy :ANDIF control statement does not seem to work.

     

     

  • Re: A webcast suggestion and some observations.

     12-19-2006, 3:13 PM

    APL+Win does not understand object, so we have to have a typed return, such as int or double.  Additionally APL+Win manipulates matrices in a way which is quite unexpected in some cases, but was done long ago for convenience.  To help in this area we will be releasing a serializer for APL+Win which will obviate this problem.

    When I tried your example above, I had htis output in the session:

          x←1
          "test",x
     test 1
    However, keep in mind that + works with strings also, so:

           x←1
          "test "+x
    test 1
    Where the result is a string, not a nested array.

    The system variables are localized by class.

    The :andif and :orif are supported as of  RC3.2

              

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems