RE: Danger! Type-checking & the translator
- Posted by Andy Serpa <ac at onehorseshy.com> Jan 27, 2003
- 408 views
> According to the Translator docs: > > "User-defined types will not affect your speed. They are ignored by the > translator unless you also call them directly with normal function > calls." > Ok, found it. It is under the section about "speed" when it ought to be mentioned promiently under a section about "why your code might not still work". > > > It should say, "You can't use custom > > types in translated programs, period." > > Of course you can, but they are ignored > just as if you had said "without type_check". > Actually, they are not completely ignored. > The Translator can still pick up information from them, > such as whether your variable is a subset of integer, sequence etc. > Well, if you have to call them explicitly, then they become normal functions. Effectively, you can't use types as types. > It won't be in 2.4 though. My schedule has slipped too much already. > I'm still hoping for a release in 10 days (I added some new stuff). > Please, put it on the list for 2.5...