Skip to Content
Sun Performance and Tuning: Java™ and the Internet, Second Edition
book

Sun Performance and Tuning: Java™ and the Internet, Second Edition

by Adrian Cockcroft, Richard Pettit
April 1998
Intermediate to advanced content levelIntermediate to advanced
624 pages
16h 11m
English
Pearson
Content preview from Sun Performance and Tuning: Java™ and the Internet, Second Edition

Functions, Procedures, and Programming Notes

SymbEL supports encapsulated, scoped blocks that can return a value. These blocks are referred to as functions and procedures for notational brevity. To complete our picture, we need to make some points about these constructs.

Function Return Types

So far, the only value that functions have returned in the examples has been a scalar type, but functions can return double or string as well. More complex types, covered in later sections, can be returned as well.

Functions cannot return arrays because there is no syntactic accommodation for doing so. However, there is a way to get around this limitation for arrays of nonstructured types. See “Returning an Array of Nonstructured Type from a Function

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Panic! UNIX® System Crash Dump Analysis

Panic! UNIX® System Crash Dump Analysis

Chris Drake, Kimberley Brown

Publisher Resources

ISBN: 0130952494Purchase book