TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Bill Birrell
from: Berk Ozbozkurt
date: 1998-12-14 00:16:38
subject: puts()

Hi Bill Birrell,

 >> In this case it is, as in C anything other than an
 >> integral data type is
 >> passed by reference.
 BB>     I'm surprised at you, George. Passed by value in C. Reference is
 BB> C++.

 not quite true. "Passed by value" means, clearly enough, passing
values, but "pass by reference" does not actually mean using a
reference variable. It means passing a pointer ("reference") to
that structure, data type, etc. and is widely used in C. Reference
variables are C++ specific, but "r.v." is actually a confusing
term, as the word "reference" is not used in that sense in any
other part of the language. There, the reference is from programmers point
of view, you have a variable which may be manipulated just like the real
target, but it is actually defined elsewhere. "Normal" use of the
word "reference" means a referencing from the view point of
machine itself, a variable holds a value telling where the another one is.

                                                Berk

* Living on earth may be expensive, but it includes an annual free trip
* around sun.

... Why isn't there mouse-flavored cat food?
--- GoldED/386 2.50.A0715 UNREG
* Origin: void BBS where nothing but (2:431/327)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 431/327 300 270/101 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.