www.delorie.com/gnu/docs/kawa/kawa_60.html   search  
 
Buy GNU books!


Kawa, the Java-based Scheme system

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10. Object, Classes and Modules

Kawa provides various ways to define, create, and access Java objects. Here are the currently supported features.

The Kawa module system is based on the features of the Java class system.

10.1 Records  
10.2 Mapping Scheme names to Java names  
10.3 Allocating objects  
10.5 Accessing fields of Java objects  
10.4 Calling Java methods from Scheme  
10.6 Defining new classes  
10.7 Anonymous classes  
10.8 Modules and how they are compiled to classes  

Syntax: this
Returns the "this object" - the current instance of the current class. The current implementation is incomplete, not robust, and not well defined. However, it will have to do for now. Note: "this" is a macro, not a variable, so you have to write it using parentheses: `(this)'. A planned extension will allow an optional class specifier (needed for nested clases).


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003