Beep CreateTextWindow

ClassLibInfo


The ClassLibInfo table contains information about the Lua class library used by Mira. To get information about the class library being used, simply examine the data members in the table, as shown below.

Syntax

Data from the ClassLibInfo table may be accessed using the table name, ClassLibInfo and the member name. For example, to fetch the major version number, get the value of ClassLibInfo.nMajor. The table members are listed below.

Data Member:

Purpose:

nMajor

Returns the major version as a number.

nMinor

Returns the minor version as a number.

sDate

Returns the date of release as a string

sCopyright

Returns the copyright information as a string.

sComments

Returns additional comments as a string.

Example

The following code prints all ClassLibInfo data in the script default text message window. Notice the concatenation operator, .., at the right end of the Printf command; this operator connects the string which is broken over multiple lines.

C = ClassLibInfo      -- make an alias to reduce the typing effort.

Printf("Lua Class Library for Mira\n--------------------------------\n" ..

     "Major: %d\nMinor: %d\nDate: %s\nCopyright: %s\nComment: %s\n",

     C.nMajor, C.nMinor, C.sDate, C.sCopyright, C.sComment )

Related Topics

Contents