Vinzent Höfler schrieb: > Florian Klaempfl <flor...@freepascal.org>: > >> Vinzent Höfler schrieb: >>> Florian Klaempfl <flor...@freepascal.org>: >> With a function result one can easily use the as-operator. > > Yes, and then instead of doing the "undefined behaviour" thingie, it > would cause an RTE instead. Not much of an improvement, I'd say.
It's the important difference between C and Pascal: "undefined behaviour" against proper error message. > >> I thought such simple things are clear without additional notes. > > And I thought, that there's no point in giving compilable > alternatives when they are still wrong. Probably that's where the > confusion came from. At least we try to avoid it to make it people too easy to shoot themself into the foot. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel