Returns information about the imp on which your code is running
Squirrel meta object with a key type — its value is a string indicating the imp type
This method returns information about the imp. The object returned by imp.info() is not a Squirrel table, but a ‘meta’ object. This means the returned object can’t be examined as might a table — for example, using
foreach to iterate over keys and values. However, its properties are accessed in the same way, using dot syntax as shown in the example below.
The returned object currently has one property, type. Its value is a string indicating the type of imp:
The following code snippet shows how a customer might use imp.info() to support multiple versions of a product, each based on a different imp type, in the same application code by aliasing application peripherals to imp-specific objects.