t3x.org / t3x / t3x-manual / 2A2.html
 
T3X - A Minimum Procedural Language
Version 8.1.5, Online Edition
Copyright(C) 1996-2004
Nils M Holm
 
Previous:
2.10.1 Interface Declarations
TOC | Index | Back Next:
2.10.3 A Sample Interface

2.10.2 Calling Interface Procedures

To the T3X programmer, an interface procedure is a method of an interface class. In order to invoke an interface procedure, the interface class is instantiated a message is sent to the resulting object:

ICLASS world("world_code")
    IDECL hello(2,1);
END

MODULE test(world);

OBJECT aWorld[world];

DO
    aWorld.hello("Hello, world!\n", 5);
END
Previous:
2.10.1 Interface Declarations
TOC | Index | Back Next:
2.10.3 A Sample Interface