🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #18

Re: conversion and void *

#18
From: Bernhard Rossboth
Date: Fri, 30 Oct 1992 16:31
10 lines
924 bytes
In article AA21279@Monkey.mcs.kent.edu, pwang@mcs.kent.edu () writes:
>
>It is an error to assign a void * type to int * say.
>But it is O.K to pass a void * argument to an int * formal argument.


Legal with GNU, but illegal with cfront and ObjectCenter. 
Add it to the known bug list of the comiler, if it is still missing.

C++ does not allow any operations on void* pointers. You have to cast them allways before usage.
Technical Details
Message-ID: <1992Oct30.163101.16035@rcvie.co.at>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!hp4at!rcvie!rcsw50!se_rossb
References: <9210030321.AA21279@Monkey.mcs.kent.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!hp4at!rcvie!rcsw50!se_rossb
From: se_rossb@rcvie.co.at (Bernhard Rossboth)
Subject: Re: conversion and void *
Message-ID: <1992Oct30.163101.16035@rcvie.co.at>
Sender: usenet@rcvie.co.at (Network News (SYSTEM))
Nntp-Posting-Host: rcsw50.rcvie.co.at
Reply-To: se_rossb@rcvie.co.at
Organization: Alcatel ELIN Research
References: <9210030321.AA21279@Monkey.mcs.kent.edu>
Date: Fri, 30 Oct 1992 16:31:01 GMT
Lines: 11