Weird Language Features

Ben Pfaff pfaffben at msu.edu
Sun Feb 18 18:44:28 CET 2001


Dave Cross <dave at dave.org.uk> writes:

> I'm doing some comparisons on programming language features and I'd be
> very interested to know how you would handle the following scenarios
> in your programming language of choice.
> 
> 1/ The programmer calls a function that doesn't actually exist within
> the application (or libraries).

Undefined behavior in C.

> 2/ Can ou filter the input source code before compilation (or
> interpretation) in some way so that language keywords could be changed
> for other strings?

#define keyword replacement
Also causes undefined behavior in at least some circumstances.
-- 
"The expression isn't unclear *at all* and only an expert could actually
 have doubts about it"
--Dan Pop



More information about the Python-list mailing list