leeke@cascade.UUCP (03/04/87)
I have just about finished porting the TML source code library to Turbo Pascal and while most of it went well there are definitly a few differences. I would also like to hear from anyone who has used the TML database kit - if you are using it with Turbo I would especially like to hear from you. Comments about the port: 1) The directives for loading resources are different. $R in Turbo $L in TML. 2) Directive statements are basically fixed format in Turbo. e.g. {$R MyRsrcs } will work in TML, but not in Turbo. In Turbo it will look for "MyRsrcs ", so the bracket has to be up tight against the filename. Same thing goes for setting the creator name and type - no spaces between the 4 letter fields in Turbo. 3) TML allows complex (e.g. Rect) structures to be returned by functions, Turbo won't. Functions that depend on this are most easily changed to have an extra var parameter and turned into procedures. 4) Turbo adds about 7k to the TML compiled size since it doesn't have a smart linker. 5) One routine is consistently bombing (heirarchical menus) with an address error - haven't had time to figure it out. Overall the souce code is a nice way to avoid doing it all yourself and there are no limitations on usage of the compiled code. According to MacTutor there is a very serious bug in the way they the source code library does custom menu definitions (they give a fix), so that may be the address error I'm seeing. I think it was last October's MacTutor, but I can't be sure. Steve Leeke -- Steven D. Leeke, Center for Integrated Systems, Stanford University {ucbvax,decvax}!decwrl!glacier!leeke, leeke@cascade.stanford.edu "I suppose they don't use money in the 23rd century?"