Re: TeraScript-Talk: multiple classes in a single tcf

2015-01-13 Thread Ian Evans
I can see how someone coming from a language like Java would feel at home with "one class per class file" (my understanding is that it's good practice to only have one per file in Java, even if the language supports otherwise.) Perhaps it's because I use Python pretty heavily, but intuitively, I t

RE: TeraScript-Talk: multiple classes in a single tcf

2015-01-13 Thread Robert Shubert
Ian, Actually, it's an incomplete feature. The story is that the ability to define multiple classes in one TCF was designed into the original TCF definition. This work was done mostly by Pervasive back in the last 90s. However the feature was never brought out in the Tango2000/Witango Developm

TeraScript-Talk: multiple classes in a single tcf

2015-01-13 Thread Ian Evans
Hello again, When creating a TCF in TeraScribe, it's possible to define multiple object classes and their methods. Instantiating separate objects in a TAF from the classes defined in the TCF works just fine. However, say you have a TCF with Class1 and Class2. Class1 was the first class defined in

RE: TeraScript-Talk: creating a restful api with terascript

2015-01-13 Thread Robert Shubert
Ian, This should be easy to do. You can create an HTTP header by hand by assigning it into request$httpheader. So to return a 404: <@ASSIGN request$httpheader "HTTP/1.1 404 Not Found<@CRLF><@CRLF>"> You must end the header with two @CRLFs You can optionally use <@SETCOOKIES> and <@USERREFEREN