🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Mike Lijewski Fri, 01 Sep 1989 20:19
delete doesn't accept null argument.
#387
Author: Mike Lijewski
Date: Fri, 01 Sep 1989 20:19
34 lines
1434 bytes
The following script illustrates that g++ won't accept 0 as
an argument to delete.


Script started on Fri Sep  1 16:08:16 1989

robbie(1)->cat delete.cc

main(void)
{
  delete 0;
}

robbie(2)->g++ -v delete.cc

g++ version 1.36.0-
 /usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__GNUC__ -D__cplusplus -Dunix -Di386 -Dsun386 -Dsun -D__unix__ -D__i386__ -D__sun386__ -D__sun__ delete.cc /tmp/cca00914.cpp
GNU CPP version 1.35.96
 /usr/local/lib/gcc-cc1plus /tmp/cca00914.cpp -quiet -dumpbase delete.cc -noreg -version -o /tmp/cca00914.s
GNU C++ version 1.36.0- (80386, Sun syntax) compiled by GNU C version 1.35.96.
default target switches: -m80387
delete.cc: In function int main ():
delete.cc:3: non-pointer type to `delete'

robbie(3)->exit

script done on Fri Sep  1 16:11:23 1989


-- 
Mike Lijewski  (H)607/277-7623 (W)607/255-0539 (desk)607/255-2960
Cornell National Supercomputer Facility
ARPA: mjlx@cornellf.tn.cornell.edu  BITNET: mjlx@cornellf.bitnet
SMAIL:  1122 Ellis Hollow Rd. Ithaca, NY  14850
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads