home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!math.fu-berlin.de!hamel!rene
- From: rene@hamel.uucp (Rene Mueller)
- Subject: Re: Interesting bug
- Message-ID: <8GJ037B@math.fu-berlin.de>
- Sender: rene@hamel (Rene Mueller)
- Organization: Free University of Berlin, Germany
- References: <92353.203941SML108@psuvm.psu.edu>
- Date: Thu, 7 Jan 1993 00:05:53 GMT
- Lines: 18
-
- In article <92353.203941SML108@psuvm.psu.edu>, <SML108@psuvm.psu.edu> writes:
- |> I had a program with code like
- |>
- |> void routine (x)
- |> int *x;
- |> {
- |> int x;
- |>
- |>
- |> }
- |>
- |> My compiler did not trap this as an error... Shouldn't it? Or at least
- |> give a warning?
- No, it should'nt give even a warning...
- Cause you open a new block with '{', and inside a new block you can define a NEW variable with an 'old' name...
- That mean that you will see the functionparameter right after the closing bracket '}', but that's too late....
-
- rene@math.fu-berlin.de
-