A
Anonymous 7843
Chris Hills said:
It's time for the post-increment joke again, if someone would be so kind.
http://www.netfunny.com/rhf/jokes/93q3/coboloop.html
Chris Hills said:
It's time for the post-increment joke again, if someone would be so kind.
Sure it did... otherwise, what did you mean byDefault User said:Walter said:Richard Heathfield wrote:Keith Thompson said:I hope that's just an overstretched metaphor. If you're actually
talking about driving, I don't know if it's even possible to turn
off the airbags,It is, at least in some cars.Really? I don't believe that's the case in the US. In fact, most
repair places will refuse to install switches, as they are
concerned about liability.
[OT]
Really. Here's how to find an official description of the rules.
Nothing there contradicts what I said.
I didn't say it wasn't possible
to INSTALL a switch, but that they don't come that way.
But it's not because of 'liability issues' as youI also said
that many repair shops will refuse to install said switches.
Chris said:I recall seeing OO Cobol around 1995 though I don't know if it had
pointers/references then.
Steve O'Hara- said:Absolutely not - but those who learn their road sense on a bicycle
(dodgy brakes, no airbags, no seatbelts and worse) are probably safer
drivers than those who learned it in a Volvo.
Keith Thompson <kst- said:Chris Hills said:J French said:[...]
I agree that protecting students with a "safe" language makes matters a
lot worse as they rely on the compiler for error checking and safety.
So you drive a car with dodgy brakes, no airbags and no seat belts ?
Not the same thing at all. Also in many cases you turn OFF the airbags
and don't use seat belts. Though you always want working breaks.
I hope that's just an overstretched metaphor. If you're actually
talking about driving, I don't know if it's even possible to turn off
the airbags,
and I *always* wear my seatbelt and insist that my
passengers do likewise.
I might consider turning off the airbags in a
dire emergence if it made the car go faster, but of course it doesn't.
Getting back to programming, yes, it's often possible to disable
checks for faster performance. Whether it's a good idea is another
matter.
This is true. Others have to be modified to turn them off.Richard said:Keith Thompson said:
It is, at least in some cars. Often this will result in the tripping of a
warning light on your dashboard.
Walter Roberson said:Keith Thompson said:It is, at least in some cars. Often this will result in the tripping of a
warning light on your dashboard.
[OT]
Turning off of airbags is recommended in some circumstances, mostly
having to do with having low-mass or fragile people in the front
passenger seat. The airbags come out with a lot of force, and can
themselves be a source of injury (or even death.)
[NB: I am -not- advocating turning off airbags, just indicating that
there are circumstances under which some "reasonable people" might
choose to do so.]
Rather C does not come with set belts and air bags. The trouble is the
"young drivers" are not told to taught to fit them and like al young
drives try trick driving without. That is why we get bad habits.
John W. Kennedy said:Yes, the feature crept into many compilers long before COBOL 2003 was
finished.
Mark said:Depending on vehicle make/model... you're still wrong.
FORD F150 comes standard with a passenger side 'deactivation
switch' and I'm certain it's not the only model that comes with it.
Ok.
But it's not because of 'liability issues' as you
claimed, they aren't allowed to disable the airbag systems
in any vehicle unless prior approval is received from NHTSA -
nothing however prevents manufacturers from installing the
switches themselves, and as I've pointed out... some do.
Richard said:It's time for the post-increment joke again, if someone would be so kind.
How does that mean that repair shops refuse to install cutout switches?
Many do for liability reasons.
"Didja hear about the new Object-Oriented version of COBOL?"
"No!"
"It's called POST-INCREMENT-COBOL-BY-ONE."
Chris Sonnack said:"Didja hear about the new Object-Oriented version of COBOL?"
"No!"
"It's called POST-INCREMENT-COBOL-BY-ONE."
Walter said:[OT]
How does that mean that repair shops refuse to install cutout
switches? Many do for liability reasons.
Depends what you mean by "liability reasons". If a US car repair shop
is not presented with an appropriate letter from NHTSA authorizing the
installation of the airbag cutoff switch, then the shop is disallowed
by law from installing said switch. If the shop goes ahead and
installs the switch anyhow without the proper paperwork, then they
are liable to fines, and possible loss of mechanics license, and
possibly even to lawsuits from distraught relatives alleging that the
unauthorized modification was the -cause- of someone's death
("Sure he was going 80 miles an hour on a wet curve signed for 40 mph
-- but he would have survived the 30 foot cliff if his airbag hadn't
been illegally disabled!")
If the proper NHTSA paperwork has been presented, then it just
becomes a standard matter of whether the work was performed
competently, same as any other potential liability that mechanics
face all the time.
Dan said:Is anyone actually using COBOL 2003? My impression was that very little new
development was being done in COBOL these days. Most shops don't want to
pay to upgrade to a new version if all they are doing is maintaining legacy
code.
And in Java _all_ objects use (aliasing) references. (Classic and I'mYes. Several programming languages have no concept of pointer that's
visible to the programmer. For example Lisp, Java and Perl have no
pointers. Perl has references which refer, somehow, to another perl
object - effectively equivalent to a pointer.
Lisp "pointers" are quite visible, although (at least classically)Lisp's don't have pointers per se. Each name in a lisp program and
almost everything else is "bound" to a piece of data of some type, and
can be freely rebound. Some of these data types can store sequences of
values. So, altogether there is no need for visible pointers.
(There are naturally tons of pointers in actual implementation, but
they're invisible to the programmer).
Yes, because it's how real machines work.
On 12 Sep 2005 15:47:25 -0700, "Rob Thorpe"
And in Java _all_ objects use (aliasing) references. (Classic and I'm
pretty sure standard) BASIC has no pointers. FWIW awk has no pointers,
although arrays (not scalars) are by-reference to functions.
Classic FORTRAN and COBOL have no manipulable pointers; they do have
call-by-reference (formally FORTRAN also allows value-result but
that's not feasible for large data). F90 added pointers that are very
type-strict but still can dangle, plus F90 added and F95 and a TR
incorporated into F03 enhanced a more restricted form that are
memory-safe; I haven't checked on recent COBOL.
Lisp "pointers" are quite visible, although (at least classically)
they refer only to cons cells, so might as well be cell ids. E.g.
; A is bound to list (1 2 3) which is a cell whose left (CAR) is 1
; and right (CDR) is a pointer to a cell with left 2
; and right pointer to cell with left 3 and right NIL.
; This can also be written explicitly (1 . (2 . (3 . NIL)))
(SETQ B (CDR A))
(RPLACA B 9)
; A (or what it is bound to) is now (1 9 3)
Conventionally a lot of Lisp code is pure-functional and never
modifies existing data structures, so aliasing doesn't matter, except
when you compare cells for identity (EQ).
"Didja hear about the new Object-Oriented version of COBOL?"
"No!"
"It's called POST-INCREMENT-COBOL-BY-ONE."
Christopher said:It catches type errors at compile time (for compiled languages), but
it can also be a hinderance at times. I have taken advantage of the
lax typing of JavaScript many times.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.