Project

General

Profile

Revision 10

Added by Willibald K. over 8 years ago

restrict list casts to something useful - i.e. inner type sizes must not change; this is in preparation for faster dynamic list support in momut; deep casts now need to be done manually by the user via fold operations or can be added again to the ooas compiler as a more expensive, special cast operator; also more cleaning of Qualitative Action System stuff

View differences:

ooaCustomParser.java
461 461
			doError(varname, String.format("%s lacks initializer!", varname.getText()));
462 462
		}
463 463
		if (isObs == true || isCtr == true)
464
			if (aType.kind() != TypeKind.QrType)
465
				doError(varname, "'obs' or 'ctr' on attributes only allowed for qualitative types");
464
			doError(varname, "'obs' or 'ctr' on attributes not allowed");
466 465

  
467 466

  
468 467
		final AttributeIdentifier var = new AttributeIdentifier(varname, aType, GetScope(), anExpr, isStatic, isObs, isCtr);

Also available in: Unified diff