![]() ZBasic Language Reference
55
ZBasic Microcontrollers
It should be noted that for native mode devices, the CodeAddress property returns a word address
instead of the usual byte address. In most cases, this fact is transparent but it should be kept in mind for
special circumstances such as passing the address of a procedure to GetProgMem() for example. One
advantage of this anomaly is that procedure addresses for ZBasic devices containing up to 128K of
Program Memory may be represented in 16-bit data items on native mode devices.
2.16 Default Visibility
For subroutines, functions, along with variables and other data items defined at the module level, the
default visibility (i.e. whether the entity is Public or Private by default) varies depending on the type of
entity as shown in the table below. Some of the entities, e.g. Structure and Class types, are described
later in this manual.
Default Visibility by Entity Type
Entity Type
Default Visibility
Constant
Private
Variable
Private
Subroutine
Public
Function
Public
Structure
Public
Enumeration
Public
Class
Public
|