10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler LimitationsCompiler LimitationsA compilation unit (that is, an entire 4GL source file, including all its includedfiles) should not contain more than:• 2728 blocksEach of these items constitutes a block: the compilation unit itself, eachfield script, event block or initialize block with a declare statement, localprocedure, or method.• 32767 integer literalsThis limit includes integer literals generated internally by the 4GL compiler.• 32767 floating-point literals• 32767 string literals inside expressions• 32767 string literals outside expressionsThis limit includes string literals generated internally by the 4GL compiler.A single execution unit, a local procedure, method, global procedure (excludingits local procedures) or frame (excluding its local procedures), should notcontain more than 32767 variables. This limit includes temporary variablesgenerated internally by 4GL.The OpenROAD compiler imposes a limit on the complexity of a singleexpression. The limit may be violated in complex conditions of if, for, and whilestatements, especially if the condition contains several groups of comparisonsthat have both AND and OR clauses. For example, a statement like thefollowing can cause a compilation error if there is insufficient memory:if a = 't' and b = 'h' and c = 'e' and d = 'n'or a = 'w' and b = 'a' and c = 'n' and d = 'q'or a = 's' and b = 'g' and c = 'r' and d = 'k'or a = 't' and b = 'h' and c = 'e' and d = 'n'thencallproc found_it;endif;92 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!