ChaosPro Home
Introduction
What's New
Palettes
Using Formulas
Layering in ChaosPro
Rendering
Fractal Parameter Windows
Windows
Menu
3D Transformations
Animations
Formula Compiler
Writing Formulas
Language Reference
Introduction
Basic Syntax
Instruction Separation
Comments
Classes and Blocks
Datatypes
Constants
Variables
Expressions
Operators
Functions
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

Comments

The compiler language supports 'C', 'C++' and Java style comments. For example:

d=sin(z); // This is a one-line c++ style comment
/* This is a multi line comment
yet another line of comment */
z=z*z+d;

The "one-line" comment style only comment to the end of the line.

You should be careful not to nest 'C' style comments, which can happen when commenting out large blocks.

/* 
z=z^2+c; /* This comment will cause a problem */
*/
Example 1
Example 2
Example 3
my-formula
{
int i; // some comment
...

}
f4_sirps (XAXIS)		
{
...
/* blah blah */
}
f4sirps ( YAXIS )		
{
...
/*
comment over more than one line
*/
}