Reflection/Get source: Difference between revisions

Content deleted Content added
Petelomax (talk | contribs)
m include_files() now exists
Line 347: Line 347:
"C:\\Program Files (x86)\\Phix\\"}
"C:\\Program Files (x86)\\Phix\\"}
</pre>
</pre>
or the directories where your project is located. If you examine that source file (pincpathN.e) you will see a commented-out constant T_fileset and it should not be hard to imagine a matching (but currently missing) sister function named include_files() that retrieves a set of {idx,name} where idx are indexes into the result from above, should that be of interest to you. Note that if it is a pre-compiled executable installed on an end users machine, those sources might not be available, but the internal routines still provide the same names since they are generally quite useful for diagnostic purposes.
or the directories where your project is located. There is also a matching include_files() function that retrieves a set of {idx,name} where idx are indexes into the result from above, should that be of interest to you. Note that if it is a pre-compiled executable installed on an end users machine, those sources might not be available, but the internal routines still provide the same names since they are generally quite useful for diagnostic purposes.


A caught exception (see the documentation for throw) contains the line number, file, and path (with the same caveat as above when installed elsewhere).
A caught exception (see the documentation for throw) contains the line number, file, and path (with the same caveat as above when installed elsewhere).