ivar_type

Gamma: Version 4.0
Prev |  | Next

# `ivar_type`

`ivar_type` -- returns the type of a given instance variable.

## Syntax

    ivar_type (instance, variable)

## Arguments

`instance`

  A class instance.

`variable`

  An instance variable name, as a symbol.

## Returns

nil if the instance does not contain the variable, or the instance variable type, as assigned by `class_add_ivar`.

## Description

This function returns the instance variable type for a given instance variable. The instance variable type is not used internally by the Gamma or Lisp engine.

## Example

        Gamma> ivar_type(Osinfo,#cpu);
        1

## See Also

`class_add_ivar`

Prev | Home | Next
`is_class_member` | Up | `macro`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.