Monday, October 7, 2013

An Objective-C to C++ Translator

Newsgroup: comp.lang.c++

Subject: Re: An Objective-C to C++ Translator

From: lipingyang2010@...

Date: Mon, 7 Oct 2013 16:01:56 -0700 (PDT)



On Thursday, July 28, 1988 11:19:01 AM UTC-7, Jim Adcock wrote:

> I have an Objective-C to C++ "translation aid" that I'm willing to make

> available on an "unsupported public domain" basis to strongly motivated

> users.

>

> The translator reduces by maybe a factor of 10X the amount of time

> required to translate software from Objective-C to C++.

>

> Unlike some language translators, this one chooses not to do a flawless

> job of translating, but rather emphasizes not messing up the original

> naming conventions, indentations, and commenting schemes. This leaves

> some final manual clean up work to the user. On the positive side, the

> resulting code looks like real code, not some kind of gibberish.

>

> The potential user should have a fair chunk of code that needs to be

> translated -- say more than 10 classes, should be quite knowledgable in

> C++ and Objective-C, and should have some idea of the difficulties and

> limitations involved in language translation. The translator is implemented

> in K+R C code which should be relatively portable, but may take a day

> or two's work to get running on a new machine. Finally, the potential user

> should realize that using the translator is not going to be a very useful

> way to compare the relative merits of Objective-C and C++.

>

> This tool is not flawless, but has proven to be useful to some people.





That's what I am looking for. Can you share it?



thanks,







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?102812-An-Objective-C-to-C-Translator&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Friday, October 4, 2013

Hope for your project - a little off topic.

Newsgroup: comp.lang.c++

Subject: Re: Hope for your project - a little off topic.

From: woodbrian77@...

Date: Fri, 4 Oct 2013 15:08:44 -0700 (PDT)





Also I'll pay someone $100 cash and give them a $200

investment in my company if they help me find someone

to work with. The company rewards investments to 3

times their original amount. So you would receive

anywhere from $0 to $600 on the investment part,

depending on how things go for the company. I'll pay

the $100 cash after working with whomever it is for 4

months.







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?101065-Hope-for-your-project-a-little-off-topic&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Shift elements of an array

Newsgroup: comp.lang.c++

Subject: Shift elements of an array

From: axcytz@...

Date: Thu, 3 Oct 2013 21:35:12 -0700 (PDT)



Hi all,



I have an array containing 15 elements. I want to shift the elements to the right and store the new array in another array, and keep the original array as is. Does anyone have any suggestions regarding this?



Thanks in advance







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?100498-Shift-elements-of-an-array&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

search name of the function at runtime

Newsgroup: comp.lang.c++

Subject: search name of the function at runtime

From: foice <franceschini.roberto@...>

Date: Thu, 3 Oct 2013 07:09:20 -0700 (PDT)



Hello,

I have a large .h file where many functions are defined. These functions are what the user calls at runtime to execute specific operations with my code. It's kind of tedious to remember the names of these functions and often even I have to go back to the source code to remember the exact name that I gave to these functions.



So, I was wondering that I can write a function that lists all the functions defined in a given .h file, maybe even filtering according to some regular expression.

The "search" must be doable at runtime without reading the source, if possible.



Thanks for helping,

Roberto







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?100080-search-name-of-the-function-at-runtime&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Thursday, October 3, 2013

A Better Choice?

Newsgroup: comp.lang.c++

Subject: A Better Choice?

From: mrc2323@...

Date: Sat, 28 Sep 2013 15:15:35 -0700



I have the following data declaration that is causing compiler

warnings:



char DBI[60001] = {'\0'} ;



The purpose of this data is to store a character value ('a'..'I') for

each corresponding record that has been read from a database. The

records are identified by a value that ranges from 1-60000. I can't use

a bitset here, as I need to store the character value associated with

each record. I don't want to be limited by the current supported range

(1...60000).

I'm looking for a better (STL container?) technique that might serve

my purpose but also avoid the fixed size constant declaration which is

causing compiler warnings. Also, I'm not especially concerned with

performance in this functionality. Any thoughts? TIA







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?96731-A-Better-Choice&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Tuesday, October 1, 2013

why does this work with Visual C++ 2005?

Newsgroup: comp.lang.c++

Subject: why does this work with Visual C++ 2005?

From: Lynn McGuire <lmc@...>

Date: Mon, 30 Sep 2013 18:45:34 -0500



Why does this work with Visual C++ 2005?



char buffer [10000];

void * test5 = & buffer;



I would think the compiler would give an error

on "& buffer", because "buffer" is the memory

address of the first element in the array, and

you can't get a memory address of a memory

address, there is no such thing. Note that

test5 and buffer do point to the same memory

address in the VC++ debugger after execution of

that line of code.



We do get a compiler error on:



char * test3 = & buffer;



And the following code compiles correctly:



char * test4 = & buffer [0];



The only thing i can think is the compiler

treats "& buffer" as "& buffer [0]" in the

void * case, assuming that is what the

programmer wanted.



Thanks,

Lynn













via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?98099-why-does-this-work-with-Visual-C-2005&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

C++ Primer Front Cover?

Newsgroup: comp.lang.c++

Subject: C++ Primer Front Cover?

From: Michal Idziorek <idziorek@...>

Date: Sun, 29 Sep 2013 17:41:08 -0700 (PDT)



Hi everyone,



I am aware my question is heavily off-topic, but I just can not get it out of my mind:



What is that thing on the front cover of the C++ Primer (by Lippman et al.) ?

Animal bones?



I Hope somebody can tell.

Warm Regards and thanks in advance,

m.



Ref: http://cache1.bdcdn.net/assets/images/book/large/9780/3217/9780321714114.jpg









via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?97324-C-Primer-Front-Cover&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums