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


Groups > comp.lang.c > #27008

Re: bug raport - about way of linking in c

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c
Subject Re: bug raport - about way of linking in c
Date 2012-10-04 21:54 +1300
Message-ID <ad5168Fdqq1U3@mid.individual.net> (permalink)
References (16 earlier) <fd74532e-f48d-4133-8508-f4cc81d12577@googlegroups.com> <ad4stvFdqq1U1@mid.individual.net> <ed23b5f8-e23c-4c6e-b15d-32536cd44924@googlegroups.com> <ad4vebFdqq1U2@mid.individual.net> <ab2513ce-47b4-41f9-be6d-202918113e38@googlegroups.com>

Show all headers | View raw


On 10/04/12 21:38, fir wrote:
> W dniu czwartek, 4 października 2012 10:24:44 UTC+2 użytkownik Ian Collins napisał:
>> On 10/04/12 21:13, fir wrote:
>>
>>> W dniu czwartek, 4 października 2012 09:41:53 UTC+2 użytkownik Ian Collins napisał:
>>
>>>> On 10/04/12 20:06, fir wrote:
>>
>>>>> nay, this is improvement to both c(&way)
>>>>> and c++ tangled way (though I had some
>>>>> hesitations to it and to some other
>>>>> improvements I still also have in some extent0

>>>>> It gives clean looking code

>>>>> Smth1 x, Smth2 y = foo(smth3, smth4);

>>>>> it is easier to write c programs with that,
>>>>> also it is fully efficient compared to
>>>>> this(&c,&way) but gives inout and output checking and it is nicer on both client

>>>> Clean possibly, but almost entirely unlike C.

>>>> In what way is your suggestion more efficient than C++ style pass by
>>>> reference?

>>> Possibly it can be faster in returning
>>> values - c++ does very strange things
>>> here, c++ 'optymizes it' (or maybe not
>>> sometimes i dont know) but it is also conteptually big mess of uglinefs for me;

>> C++ (and maybe C as well?) RVO will construct the return value for the
>> function in the variable the function return would be assigned to.  So
>> you can write functions that return large objects without having to
>> worry about the copy overhead.
>
> maybe but afaik it is limited, here it
> is clean and light, conteptualy easier,
> solution how to do it - also code looks
> nicer (no&  * signs and other unnecessary
> stuff - explicite pointers or even 'explicite
> references' are not needed here when looking at it at conteptual level (one need reference to data not explicit pointer, i chose hidden reference as a proposal after some deliberations))

Can't you do anything about all those unnecessary blank and long lines 
in your replies?  Fixing them is a pain in the arse.

In C++ one could write

SomeBigObect a;
SomeBigObect b;

SomeBiggerObect c = someFunction(a, b);

Which is what you originally wrote.

-- 
Ian Collins

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