Type Casting in VisualAPL

General discussions related to APLNext's VisualAPL.

Moderators: Tech Support, phpbb_admin

Type Casting in VisualAPL

Postby joe_blaze » September 8th, 2008, 5:53 pm

Sometimes it is desirable, for enhanced performance or to interoperate with a non-VisualAPL language, to cast a VisualAPL 'CVAR' type variable to another data type.

For example (in Cielo Explorer - the VisualAPL 'session):

Cielo Explorer for Visual Studio - Professional v1
Cielo 1.0.7001
Copyright © VisualCielo. All rights reserved.
clear session


Strong data typing may be used to enhance performance of a VisualAPL function or coerce data to a data type which is required for a specific .Net class.

To see more examples of type coercion, download the attached file "More_VisualAPL_TypeCasting.pdf".

To see an example of coercing the datatype of the result of the []ucs function, download the attached "DataTyping and []UCS Example.pdf" file.

To see the potential performance benefits of VisualAPL using strong data typing, download the "Visual_StrongDataTyping_Performance.pdf" document and the associated Visual Studio 2008 VisualAPL console project in the "VectorProcessTiming.zip" file.
Review this document to see how array-based operations result in CVAR, but can be cast to any appropriate .Net type.
(101.3 KiB) Downloaded 156 times
This document describes potential performance advantages of strong data typing compared to dynamic data typing.
(552.88 KiB) Downloaded 152 times
This VisualAPL project illustrates performance timing advantages of strong data typing.
(1.75 MiB) Downloaded 161 times
DataTyping and []UCS Example.pdf
This document illustrates the coercion of the results of the []ucs VisualAPL function.
(32.45 KiB) Downloaded 152 times
This document illustrates more strong data typing in VisualAPL examples.
(139.49 KiB) Downloaded 161 times
Posts: 383
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 1 guest