delphi - const set of Char and Pascal Script Unit Importer -
i'm running pascal script unit importer on unit, error:
"expecting token '=' token 'of' found. previous tokens: 'worddelimiters: set of'"
here constant triggers error:
const worddelimiters: set of char = [#0..#255] - ['a'..'z','a'..'z','1'..'9','0'];
the constant worddelimiters part of third party library. there way rewrite unit importer can work unit?
a test shows set of char supported:
type tworddelimiters = set of char;
the unit importer result:
procedure siregister_mytestunit(cl: tpspascalcompiler); begin cl.addtypes('tworddelimiters', 'set of char'); end;
but constant set of char below doesn't work, there complaint on '..' double dots:
const mychars = ['a'..'z', 'a'..'z'];
skipping double dots , typing chars manually works, isn't there way?
const mychars = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];
Comments
Post a Comment