Futurebasic/Language/Reference/fnaddress

From Wikibooks, open books for an open world
< Futurebasic | Language | Reference
Jump to: navigation, search

Contents

[edit] @fn

[edit] Syntax

dim as pointer   functionAddress
functionAddress = @fn FunctionName

[edit] Description

Returns a memory address which can be used to access the function specified by FunctionName. FunctionName must be the name of a function which was defined or prototyped at some earlier location in the source code (in a local fn, a def fn <expr>, or a def fn <prototype> statement).

The address returned by @fn can be used in the def fn using statement, in the fn using statement/function, or to specify a callback function (for instance a Carbon Event handler).

[edit] Note

No special notes.

[edit] See Also

def fn using; line

Language Reference

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export