Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #26753

Re: bug raport - about way of linking in c

From "BartC" <bc@freeuk.com>
Newsgroups comp.lang.c
Subject Re: bug raport - about way of linking in c
Date 2012-09-28 15:49 +0100
Organization A noiseless patient Spider
Message-ID <k44dev$qei$1@dont-email.me> (permalink)
References <8aa0b0c0-ff50-49be-b733-ff0612cde988@googlegroups.com> <k445mu$830$1@dont-email.me> <0.46f8e9648ac6f09ec966.20120928140849BST.87r4pm70ri.fsf@bsb.me.uk> <k44b3k$b7v$1@dont-email.me>

Show all headers | View raw


"James Kuyper" <jameskuyper@verizon.net> wrote in message 
news:k44b3k$b7v$1@dont-email.me...
> On 09/28/2012 09:08 AM, Ben Bacarisse wrote:

>> That's true if you define wrong as "non-conforming to current or de
>> facto standards" but the OP is talking about improvements to C --
>> there's something that is currently not wrong by the language standard
>> (and/or current practice) but that could be better (so much so that the
>> current behaviour is "obviously wrong").
>
> I disagree that "obviously wrong" is a good description of this
> behavior.

It's 'wrong' in that it's non-intuitive. In the real world, things are 
usually private unless you explicitly choose to make them public. That 
generally applies in computing too: names, and the values or locations 
attached to them, are usually private to a scope.

In C, you declare 'int count;' at filescope in one module, and declare a 
different 'int count;' at filescope in another, then get confused why the 
program doesn't work properly (because both modules are accessing the same 
variable!).

(And another cause of confusion for me, is that it's not clear which module 
'owns' the 'count' variable, when it's not initialised. Yet initialise 
'count' in both modules (or in a shared header), and  now it's two distinct 
variables! Because the linker reports an error.)

> If you're right about what he's complaining about, it was the
> intentional result of the way some very intelligent people designed a
> computer language that has become one of the most popular in the world,

Yes, well, they also designed the type-declaration syntax...

-- 
Bartc 

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 05:00 -0700
  Re: bug raport - about way of linking in c James Kuyper <jameskuyper@verizon.net> - 2012-09-28 08:37 -0400
    Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-28 14:08 +0100
      Re: bug raport - about way of linking in c James Kuyper <jameskuyper@verizon.net> - 2012-09-28 10:09 -0400
        Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-28 15:49 +0100
          Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-28 16:20 +0100
        Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-28 16:02 +0100
      Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 07:48 -0700
        Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-28 16:02 +0100
          Re: bug raport - about way of linking in c Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-28 11:27 -0400
            Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-28 16:35 +0100
              Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 09:02 -0700
                Re: bug raport - about way of linking in c Andrew Smallshaw <andrews@sdf.lonestar.org> - 2012-09-28 18:54 +0000
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 13:54 -0700
                Re: bug raport - about way of linking in c Andrew Smallshaw <andrews@sdf.lonestar.org> - 2012-09-29 02:24 +0000
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 23:27 -0700
                Re: bug raport - about way of linking in c Andrew Smallshaw <andrews@sdf.lonestar.org> - 2012-09-29 06:42 +0000
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 00:10 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 15:36 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 08:53 -0700
                Re: bug raport - about way of linking in c Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-09-30 01:57 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 12:28 -0700
                Re: bug raport - about way of linking in c Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-28 22:36 -0400
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 23:14 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 14:19 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 06:53 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 16:04 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 08:40 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 17:24 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 09:45 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 21:05 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 13:18 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-09-29 14:17 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 00:42 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 00:49 -0700
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-30 03:22 -0500
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 01:37 -0700
                Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-30 11:01 +0100
                Re: bug raport - about way of linking in c Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-09-30 02:06 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 10:23 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 11:03 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-09-29 14:30 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 00:25 -0700
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-30 03:44 -0500
                Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-29 19:04 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 11:21 -0700
                Re: bug raport - about way of linking in c Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-09-30 02:18 -0700
                Re: bug raport - about way of linking in c Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-09-30 01:50 -0700
          Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 08:31 -0700
            Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-28 16:49 +0100
              Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 09:34 -0700
                Re: bug raport - about way of linking in c Robert Wessel <robertwessel2@yahoo.com> - 2012-09-28 12:22 -0500
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 10:50 -0700
                Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-28 19:09 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 13:31 -0700
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-28 16:37 -0500
                Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-29 11:54 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 05:13 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 15:42 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 08:12 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 17:19 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 10:04 -0700
                Re: bug raport - about way of linking in c Robert Wessel <robertwessel2@yahoo.com> - 2012-09-29 13:03 -0500
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 20:59 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 13:55 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-09-29 15:34 -0700
                Re: bug raport - about way of linking in c jacob navia <jacob@spamsink.net> - 2012-09-29 22:58 +0200
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-29 22:19 +0100
                Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-09-30 01:29 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 00:09 -0700
                Re: bug raport - about way of linking in c Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-09-30 02:37 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 00:45 -0700
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-29 20:30 -0500
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 23:55 -0700
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-30 04:14 -0500
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 06:16 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-09-29 14:11 -0700
                Re: bug raport - about way of linking in c Barry Schwarz <schwarzb@dqel.com> - 2012-09-29 14:28 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-09-29 15:38 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 04:10 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-09-30 04:20 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 04:48 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 05:33 -0700
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-30 13:03 -0500
                Re: bug raport - about way of linking in c Kaz Kylheku <kaz@kylheku.com> - 2012-10-01 21:48 +0000
                Re: bug raport - about way of linking in c Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-09-30 02:30 -0700
                Re: bug raport - about way of linking in c Robert Wessel <robertwessel2@yahoo.com> - 2012-09-28 17:19 -0500
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 23:46 -0700
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-29 02:38 -0500
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-29 00:58 -0700
                Re: bug raport - about way of linking in c Greg Martin <greg@softsprocket.com> - 2012-09-29 17:42 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 01:06 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-30 13:35 +0100
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 06:04 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 06:25 -0700
                Re: bug raport - about way of linking in c Greg Martin <greg@softsprocket.com> - 2012-09-30 07:44 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-30 08:57 -0700
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-30 19:18 +0100
                Re: bug raport - about way of linking in c Kaz Kylheku <kaz@kylheku.com> - 2012-10-01 21:49 +0000
                Re: bug raport - about way of linking in c Thomas Richter <thor@math.tu-berlin.de> - 2012-09-30 18:35 +0200
                Re: bug raport - about way of linking in c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-30 19:32 +0100
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-29 23:48 -0500
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-10-02 08:05 -0500
                Re: bug raport - about way of linking in c Kaz Kylheku <kaz@kylheku.com> - 2012-10-02 17:52 +0000
                Re: bug raport - about way of linking in c "BartC" <bc@freeuk.com> - 2012-10-03 17:10 +0100
                Re: bug raport - about way of linking in c Greg Martin <greg@softsprocket.com> - 2012-10-03 09:43 -0700
                Re: bug raport - about way of linking in c Les Cargill <lcargill99@comcast.com> - 2012-10-03 12:58 -0500
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-10-03 18:53 -0500
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-03 11:12 -0700
                Re: bug raport - about way of linking in c Greg Martin <greg@softsprocket.com> - 2012-10-03 12:06 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-03 12:43 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-10-03 14:07 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-03 15:05 -0700
                Re: bug raport - about way of linking in c Ian Collins <ian-news@hotmail.com> - 2012-10-04 11:23 +1300
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-04 00:06 -0700
                Re: bug raport - about way of linking in c Ian Collins <ian-news@hotmail.com> - 2012-10-04 20:41 +1300
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-04 01:13 -0700
                Re: bug raport - about way of linking in c Ian Collins <ian-news@hotmail.com> - 2012-10-04 21:24 +1300
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-04 01:38 -0700
                Re: bug raport - about way of linking in c Ian Collins <ian-news@hotmail.com> - 2012-10-04 21:54 +1300
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-04 02:17 -0700
                Re: bug raport - about way of linking in c Kaz Kylheku <kaz@kylheku.com> - 2012-10-03 22:35 +0000
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-03 15:42 -0700
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-10-03 18:42 -0500
                Re: bug raport - about way of linking in c Kaz Kylheku <kaz@kylheku.com> - 2012-10-04 01:31 +0000
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-04 02:54 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-10-03 15:55 -0700
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-03 15:19 -0700
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-10-03 15:59 -0700
                Re: bug raport - about way of linking in c Jens Gustedt <jens.gustedt@loria.fr> - 2012-10-04 13:43 +0200
                Re: bug raport - about way of linking in c gazelle@shell.xmission.com (Kenny McCormack) - 2012-10-04 13:33 +0000
                Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-10-04 12:47 -0700
                Re: bug raport - about way of linking in c Jens Gustedt <jens.gustedt@loria.fr> - 2012-10-05 10:02 +0200
                Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-10-03 18:57 -0500
                Re: bug raport - about way of linking in c Lowell Gilbert <lgusenet@be-well.ilk.org> - 2012-10-03 20:37 -0400
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-10-03 23:53 -0700
                Re: bug raport - about way of linking in c Lowell Gilbert <lgusenet@be-well.ilk.org> - 2012-10-03 20:30 -0400
                Re: bug raport - about way of linking in c Kaz Kylheku <kaz@kylheku.com> - 2012-10-02 17:50 +0000
                Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 11:00 -0700
              Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 09:49 -0700
        Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-28 13:37 -0500
          Re: bug raport - about way of linking in c fir <profesor.fir@gmail.com> - 2012-09-28 11:51 -0700
            Re: bug raport - about way of linking in c Stephen Sprunk <stephen@sprunk.org> - 2012-09-28 16:37 -0500
  Re: bug raport - about way of linking in c Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-28 09:30 -0400
    Re: bug raport - about way of linking in c Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-28 09:37 -0400
    Re: bug raport - about way of linking in c Keith Thompson <kst-u@mib.org> - 2012-09-28 12:10 -0700
  Re: bug raport - about way of linking in c Kaz Kylheku <kaz@kylheku.com> - 2012-09-28 18:49 +0000

csiph-web