VisualAPL - Defining Functions

General discussions related to APLNext's VisualAPL.

Moderators: Tech Support, phpbb_admin

VisualAPL - Defining Functions

Postby joe_blaze » April 21st, 2009, 11:29 pm

The attached "VisualAPL - Defining Functions.pdf" document provides a summary of the function "containers" and signatures supported by VisualAPL. This document is intended as a supplement to the VisualAPL documentation installed when VisualAPL is installed on the programmer's machine.

The attached "WPFApp_CallingVisualAPLfunction.ZIP" file contains a Visual Studio 2008 solution with two projects:
    WPF(Windows Presentation Foundation) GUI which calls a VisualAPL function using the standard .Net function signagure
    VisualAPL class library containing the called VisualAPL function (the source code for this project is in the attached "APLNClassLibrary1.zip" file)

The attached "WpfAppCallingVisualAPLTradAPLSignatureFn.ZIP" file contains a Visual Studio 2008 solution with two projects:
    WPF GUI which calls a VisualAPL function using the traditional APL function signature
    VisualAPL class library containing the called VisualAPL function (the source code for this project is in the attached "APLNClassLibrary_VRotate.ZIP" file)


Note that remarks (programmer comments) in function definitions must be within the {...} delimiters of the function definition.

The "AplFunction Attribute.pdf" document describes the way that the traditional APL function signature is implemented in VisualAPL and how the "AplFunction" attribute may be applied to a method specification in any other .Net language, e.g. C# or VB.Net, so that the method may be called from a VisualAPL class using the traditional APL function signature calling syntax.
Attachments
AplFunction Attribute.pdf
Refer to this document for information about the "AplFunction" attribute.
(58.26 KiB) Downloaded 369 times
APLNClassLibrary1.zip
(1.14 MiB) Downloaded 381 times
APLNClassLibrary_VRotate.ZIP
(1.14 MiB) Downloaded 376 times
VisualAPL - Defining Functions.pdf
(221.34 KiB) Downloaded 400 times
WpfAppCallingVisualAPLTradAPLSignatureFn.ZIP
(52.07 KiB) Downloaded 363 times
WPFApp_CallingVisualAPLfunction.ZIP
(50.88 KiB) Downloaded 374 times
Last edited by joe_blaze on June 12th, 2009, 1:24 pm, edited 4 times in total.
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

Postby Ajay Askoolum » April 22nd, 2009, 5:17 pm

// Another way to define functions interactively in the session

⎕def ⊃'∇Zâ†
Ajay Askoolum
 
Posts: 884
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

VisualAPL []cr or []vr

Postby joe_blaze » April 22nd, 2009, 7:09 pm

VisualAPL does not currently support []cr or []vr.

VisualAPL source code (.apl-format) files are non-proprietary, Unicode-based text files, just like any other .Net language. This means that VisualAPL source code can be stored easily in commercial databases Microsoft SQL Server, Oracle or IBM DB2. In addition there are numerous source code repository systems available which support Unicode text including Microsoft Visual Studio Team Server.

[]vr and []cr in legacy implementations of APL were sometimes needed to convert proprietary source code format to text format. Even then, a proprietary font was needed to properly display the text representation of legacy APL functions. There were probably other creative uses for []vr and []cr?
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

"Corrupted fonts"?

Postby joe_blaze » April 22nd, 2009, 7:36 pm

Please review the messages associated with this Forum thread:
http://forum.apl2000.com/viewtopic.php?p=1710#1710.

Thanks for pointing out that there may be several places in Visual Studio, e.g. "all text tools" and "printer", where it is necessary to select a Unicode font [e.g. APLNext.ttf] which implements the APL glyphs.

The "Code" button in this phpBB forum has been set up to accept and display the APL+Win proprietary font:
Code: Select all
’=Ÿ^½†‡~


I believe that is is possible in recent versions of the phpBB software to set it up for Unicode also, but that has not been done for this forum yet.
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361


Return to VisualAPL

Who is online

Users browsing this forum: No registered users and 21 guests

cron