TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTIAN S. PEDERSEN
from: PETER HAYWOOD
date: 1997-08-19 03:24:00
subject: Re: Conversion of pointer.

Groovy hepcat Christian S. Pedersen jived with All on 24 Jul 97  16:49:32!
Conversion of pointer.'s a cool scene. Dig it!
 CSP> int* test()
 CSP> {
 CSP> int i=5;
 CSP> return &i;
 CSP> }
 CSP> Why do I get a "Suspicious pointer conversion"-warning ? The functions
 CSP> using this concept seems to work OK. Should I make them differently. 
  It could be because i is not a static variable, and will cease to
exist when the function exits. You should define i as static, then see
if you get the same warning from the compiler.
                                                  Wolvaen
... I've become the father of a breakfast! - Sylvester
--- Blue Wave/RA v2.20
---------------
* Origin: The Gate, Melbourne Australia, +61-3-9809-5097 33.6k (3:633/159)

SOURCE: echomail via exec-pc

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™.