IndexType Struct Reference
[Compiler]

#include <type_desc.h>


Detailed Description

IndexType has been modified to store a key, and a string representation of the set of indices. As it stands the set of indices is of very little utility. For example, if we had "foo[1,2,3,4] IS_A thing;" then what would be saved is 1,2,3,4. -- which is useful Likewise "foo[fooset - [thingset]] IS_A thing;" we would have "fooset thingset -" -- which is not very useful.

So we now save a string representation of the set.

Apparently, the above statement about sets could only have been made by someone "with no real clue about the instantiate process", and "Both representations are critical to have, and since they are cheap, we will have both. The string IS a string from the symbol table."


Data Fields

Set * set
symchar * sptr
unsigned int_index


Field Documentation

struct Set* IndexType::set

the original set

symchar* IndexType::sptr

a string representation of the set

unsigned IndexType::int_index

0 this index is an enumerate one, 1 this index is an integer one


The documentation for this struct was generated from the following file:
Generated on Thu Jul 17 04:00:58 2008 for libascend by  doxygen 1.5.1