CompileErrors/C0002

From Compost Wiki
Jump to navigation Jump to search

C0002 - Subroutines which return strings are not currently supported.

Description

C0002 is issued when a subroutine has a name ending in $, indicating that it should return a string.

Compost does not yet support strings as return values from subroutines.

Example of Cause

A subroutine which claims to return a string.

SomeSubroutine$:
   ReturnString 'Some String'
RETURN

Resolution

Do not use a subroutine in this case.