473,800 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pointer Guide Nearing Completion

48 2405
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:
http://thelinuxlink.net/~fingolfin/pointer-guide

Tell me what you think...


I think you should get the distinction between zero and null clear, and
learn not to invoke undefined behaviour, before you start teaching
others about pointers.

Richard
Nov 14 '05 #2
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote in message news:<41******* ********@news.i ndividual.net>. ..
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:
http://thelinuxlink.net/~fingolfin/pointer-guide

Tell me what you think...
I think you should get the distinction between zero and null clear, and
learn not to invoke undefined behaviour, before you start teaching
others about pointers.


Where do I invoke undefined behavior, besides the part marked /* ERROR!! */??

Richard

Nov 14 '05 #3

On Wed, 20 Oct 2004, Foobarius Frobinium wrote:

Richard Bos wrote:
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:

http://thelinuxlink.net/~fingolfin/pointer-guide


I think you should get the distinction between zero and null clear, and
learn not to invoke undefined behaviour, before you start teaching
others about pointers.


Where do I invoke undefined behavior, besides the part marked
/* ERROR!! */??


The second example on the page, which is also the place you confuse
"zero" and "null." And again in the fourth example. Maybe some
other places; I just skimmed to find the things Richard must have been
referring to.

-Arthur
Nov 14 '05 #4
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote in message news:<41******* ********@news.i ndividual.net>. ..
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:
http://thelinuxlink.net/~fingolfin/pointer-guide

Tell me what you think...


I think you should get the distinction between zero and null clear, and
learn not to invoke undefined behaviour, before you start teaching
others about pointers.


Where do I invoke undefined behavior, besides the part marked /* ERROR!! */??


The issue I was mainly referring to has come up so bloody often on this
newsgroup, that if you'd ever read it for comprehension you'd have know
_exactly_ what I was talking about. Since I don't think that someone
incompetent should be teaching others on the use of pointers (because
it's too bloody dangerous), that's all the help you will get from me.

Richard
Nov 14 '05 #5
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote in message news:<41******* *********@news. individual.net> ...
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote in message news:<41******* ********@news.i ndividual.net>. ..
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:

> http://thelinuxlink.net/~fingolfin/pointer-guide
>
> Tell me what you think...

I think you should get the distinction between zero and null clear, and
learn not to invoke undefined behaviour, before you start teaching
others about pointers.
Where do I invoke undefined behavior, besides the part marked /* ERROR!! */??


The issue I was mainly referring to has come up so bloody often on this
newsgroup, that if you'd ever read it for comprehension you'd have know
_exactly_ what I was talking about. Since I don't think that someone
incompetent should be teaching others on the use of pointers (because
it's too bloody dangerous),


Then you'd better get working, going around to all those universities
and colleges where the CS professors confuse arrays and
pointers...thei r infractions are far worse. (And there's plenty of
them.)

Dangerous? Is somebody going to lose a leg?
that's all the help you will get from me.

Richard

Nov 14 '05 #6

Foobarius Frobinium wrote:
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote in message news:<41******* *********@news. individual.net> ...
fo******@your emailbox.com (Foobarius Frobinium) wrote:
rl*@hoekst ra-uitgeverij.nl (Richard Bos) wrote in message news:<41******* ********@news.i ndividual.net>. ..
fo******@yo uremailbox.com (Foobarius Frobinium) wrote:

>http://thelinuxlink.net/~fingolfin/pointer-guide
>
>Tell me what you think...

I think you should get the distinction between zero and null clear, and
learn not to invoke undefined behaviour, before you start teaching
others about pointers.

Where do I invoke undefined behavior, besides the part marked /* ERROR!! */??
The issue I was mainly referring to has come up so bloody often on this
newsgroup, that if you'd ever read it for comprehension you'd have know
_exactly_ what I was talking about. Since I don't think that someone
incompetent should be teaching others on the use of pointers (because
it's too bloody dangerous),


Then you'd better get working, going around to all those universities
and colleges where the CS professors confuse arrays and
pointers...thei r infractions are far worse. (And there's plenty of
them.)


And why exactly do you want to be counted among the ranks of
the incompetent and dangerously stupid?
Learn from Richard's comments, mend your ways and the misinformation
you spread.

Dangerous? Is somebody going to lose a leg?


I see a certain danger in having the least qualified candidates teach
the next generations.
Apart from that:
It may not have occurred to you yet, but some of the people you
teach one day may work on real life applications. And there,
UB may creep in at the most inconvenient place and strike when
lives or inviolacy depend on what some piece of software does or
did. I certainly would not find it merely inconvenient if I produced
some wrong simulation results causing a structural weakness in a
vehicle which is only exhibited in situations which have not been
tested, for example.
And, having seen more then one one-week-course-too-teach-you-all
with all its minor and major errors, this is a possibility.
-Michael
--
E-Mail: Mine is a gmx dot de address.

Nov 14 '05 #7
"Arthur J. O'Dwyer" <aj*@nospam.and rew.cmu.edu> wrote in message news:<Pi******* *************** ************@un ix40.andrew.cmu .edu>...
On Wed, 20 Oct 2004, Foobarius Frobinium wrote:

Richard Bos wrote:
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:

http://thelinuxlink.net/~fingolfin/pointer-guide

I think you should get the distinction between zero and null clear, and
learn not to invoke undefined behaviour, before you start teaching
others about pointers.
Where do I invoke undefined behavior, besides the part marked
/* ERROR!! */??


The second example on the page, which is also the place you confuse
"zero" and "null." And again in the fourth example. Maybe some
other places; I just skimmed to find the things Richard must have been
referring to.


I did fix the NULL bit; yes that was pretty bad.

But I can't help but take offense when I come to an NG, not wanting to
cause trouble, and I get a completely uncalled-for brow-beating from
someone, who in this case is one Mr. Vos.

Failing to adhere to a certain feature of the C standard does not
deserve anything more than a kind correction. I taught myself
everything I know about C and pointers, taking special pains to pull
together various bits of frequently incorrect documentation both in
books and on the web (the C FAQ was especially useful), and I'm just
trying to help others. I wouldn't say I'm a C expert; I haven't even
graduated high school yet. I intend to divulge what I've learned in a
comprehensive format. In the process, I merely ask for a little
assistance, not for someone else to bend over backwards, and it seems
I won't get any.

Hence I implore everyone on this NG to behave a little more
respectfully, and remember there /is/ a real person on the other side
of the news server.

-Arthur

Nov 14 '05 #8
On 21 Oct 2004 06:59:49 -0700, fo******@yourem ailbox.com (Foobarius
Frobinium) wrote:
"Arthur J. O'Dwyer" <aj*@nospam.and rew.cmu.edu> wrote in message news:<Pi******* *************** ************@un ix40.andrew.cmu .edu>...
On Wed, 20 Oct 2004, Foobarius Frobinium wrote:
>
> Richard Bos wrote:
>> fo******@yourem ailbox.com (Foobarius Frobinium) wrote:
>>>
>>> http://thelinuxlink.net/~fingolfin/pointer-guide
>>
>> I think you should get the distinction between zero and null clear, and
>> learn not to invoke undefined behaviour, before you start teaching
>> others about pointers.
>
> Where do I invoke undefined behavior, besides the part marked
> /* ERROR!! */??


The second example on the page, which is also the place you confuse
"zero" and "null." And again in the fourth example. Maybe some
other places; I just skimmed to find the things Richard must have been
referring to.


I did fix the NULL bit; yes that was pretty bad.

But I can't help but take offense when I come to an NG, not wanting to
cause trouble, and I get a completely uncalled-for brow-beating from
someone, who in this case is one Mr. Vos.


The above remarks by Mr. Bos hardly qualify as browbeating. You
present yourself as someone qualified to teach others about pointers,
and must expect that folks in this group won't let you get away with
inaccuracies.

--
Al Balmer
Balmer Consulting
re************* ***********@att .net
Nov 14 '05 #9
On 21 Oct 2004 04:50:25 -0700, fo******@yourem ailbox.com (Foobarius
Frobinium) wrote:
rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote in message news:<41******* *********@news. individual.net> ...
fo******@yourem ailbox.com (Foobarius Frobinium) wrote:
> rl*@hoekstra-uitgeverij.nl (Richard Bos) wrote in message news:<41******* ********@news.i ndividual.net>. ..
> > fo******@yourem ailbox.com (Foobarius Frobinium) wrote:
> >
> > > http://thelinuxlink.net/~fingolfin/pointer-guide
> > >
> > > Tell me what you think...
> >
> > I think you should get the distinction between zero and null clear, and
> > learn not to invoke undefined behaviour, before you start teaching
> > others about pointers.
>
> Where do I invoke undefined behavior, besides the part marked /* ERROR!! */??
The issue I was mainly referring to has come up so bloody often on this
newsgroup, that if you'd ever read it for comprehension you'd have know
_exactly_ what I was talking about. Since I don't think that someone
incompetent should be teaching others on the use of pointers (because
it's too bloody dangerous),


Then you'd better get working, going around to all those universities
and colleges where the CS professors confuse arrays and
pointers...the ir infractions are far worse. (And there's plenty of
them.)

How would you know that, not having even graduated high school yet?
Dangerous? Is somebody going to lose a leg?

It could be far worse than that. I worked for twenty years in an
industry where a program's undefined behavior can (and sometimes does)
kill people.

--
Al Balmer
Balmer Consulting
re************* ***********@att .net
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
1878
by: Foobarius Frobinium | last post by:
Please review this guide for clarity, accuracy, etc. so I can hopefully compile a very good tutorial on how to use pointers in C, including advanced topics, that is easy to follow and exposes the details. http://thelinuxlink.net/~fingolfin/pointer-guide/ My e-mail address is fake. To really contact me, send mail to: fingolfinJOHNLENNONSPENIS@thelinuxlink.net, subtracting the blatant anti-spam component.
2
1548
by: Foobarius Frobinium | last post by:
http://thelinuxlink.net/~fingolfin/pointer-guide/ I've made a lot of corrections, and put in more new stuff. I have malloc and pointers to struct's and maybe a few more things and I'm done. Examine it and tell me what you think.
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10507
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10279
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10036
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9092
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6815
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4150
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2948
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.