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

APLNext Screencasts

Screencast: The using directive, and []Reference and []Using

Examples presented in this screencast:

Most .Net languages only allow the importing of .Net assemblies at build time.  This means that you can only use the classes, methods, properties, events, etc, of assemblies which exist, on your computer, at the time you build your assembly with Visual Studio.  Here is a common example of referencing an assembly:

refbyname System.Windows.Forms
using System.Windows.Forms

In Visual APL, you can also import assemblies at runtime using the []reference and []using expressions.  By using these system functions, the importing of the specified assemblies is only performed at the moment the []reference or []using function is executed, making it possible for your code to import assemblies that do not or cannot exist at the time you build your assembly.  Here is the runtime equivalent of the System.Windows.Forms directive import above:

⎕reference "System.Windows.Forms"
⎕using "System.Windows.Forms"

This screencast is a subset of Screencast: The Using Directive, Expression, and Statement

Click to watch
WatchFormat: wmv
Duration: 40:08

To view this webcast directly in Windows Media Player, click on "Direct Link" above. 

If you are behind a restrictive firewall, you can view this screencast Here

Viewing directly in Windows Media Player allows the use of all video playback controls, such as skipping over parts of the screencast, and viewing at 2x speed.

Published Sunday, March 04, 2007 2:24 AM by administrator

Comments

No Comments
Anonymous comments are disabled

This Blog

Post Calendar

<March 2007>
SuMoTuWeThFrSa
25262728123
45678910
11121314151617
18192021222324
25262728293031
1234567

Syndication

Powered by Community Server, by Telligent Systems