Difference between revisions of "Type Safe Constant Proposals"

From PCGen Wiki
Jump to: navigation, search
(New page: {| align="right" | __TOC__ |} =CHOOSE proposals for Type Safe Constants= ==CHOOSE:SCHOOLS== SUBTOKEN: SCHOOLS (altered by this proposal, no argument version is deprecated)<br> ===S...)
 
 
Line 4: Line 4:
  
 
=CHOOSE proposals for Type Safe Constants=
 
=CHOOSE proposals for Type Safe Constants=
 +
 +
==CHOOSE:NOCHOICE==
 +
 +
No syntax changes
 +
 +
==CHOOSE:STRING==
 +
 +
No syntax changes
  
 
==CHOOSE:SCHOOLS==
 
==CHOOSE:SCHOOLS==

Latest revision as of 22:06, 24 March 2009

CHOOSE proposals for Type Safe Constants

CHOOSE:NOCHOICE

No syntax changes

CHOOSE:STRING

No syntax changes

CHOOSE:SCHOOLS

SUBTOKEN: SCHOOLS (altered by this proposal, no argument version is deprecated)

Syntax

CHOOSE:SCHOOLS|x|x

x is a PRIMITIVE

A PRIMITIVE is an identifier of objects, and may include any number of specifications.

In the case of SCHOOLS objects, the only valid PRIMITIVES are the four global PRIMITIVES:

x = a School (Abjuration, Evocation, etc.)
x = ALL (allow the choice of any SCHOOL)

Conversion

CHOOSE:SCHOOLS becomes CHOOSE:SCHOOLS|ALL