Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Class name specifications with a "T" prefix
Wed, Oct 21 2015 9:48 AMPermanent Link

Michael Dreher

Found in help:

 // All <Class Name> specifications in Elevate Web Builder must begin with a "T" prefix
 // (stands for "Type"). The compiler will enforce this rule and issue an error if you
 // attempt to specify a class name without this prefix.

Implementing a coding style in the language? Sure why not. But then...

type ObviouslyThisClassIsNotPrefixedWithT = class end;         
var o : ObviouslyThisClassIsNotPrefixedWithT;

initialization
 o := ObviouslyThisClassIsNotPrefixedWithT.Create;
end.

...will be compiled and executed, no error or warning. So this will be implemented in future?

Michael Dreher
Wed, Oct 21 2015 12:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<<...will be compiled and executed, no error or warning. So this will be implemented in future? >>

Actually, no, it's a bit that was left-over from EWB 1.x.  The EWB 2.x compiler doesn't care, other than when dealing with form names/form class names.

I'll make sure that this is modified.

Tim Young
Elevate Software
www.elevatesoft.com
Image