🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17257

Re: class = null ?!

#17257
From: Michael A. Long
Date: Sun, 22 Nov 1998 00:00
21 lines
1335 bytes
try this: Data d = new B.getData();

Vladimir Olenin wrote in message <36586170.A4A677D4@collegemail.com>...
>Recently i ran into an interesting problem. The deal is that i have a
>method in class B that returns a class, let call it Data, consisting of
>fields only (that is struct in C language). And when i call this method
>from class A, the fields of Data class are filled with appropriate
>information, but a pointer to it equals null. That is
>    Data d = B.getData();  // d == null, though d.field1 != null,
>d.field2 != null, etc
>
>Is that normal or what? Thanks beforehand,
>
>                                    Vladimir
>
>--
>>~~~~~~~~<=============>~~~~~~~~<
>Be yourself no matter what they say...
>Join in Java community now!
>http://www.geocities.com/SiliconValley/Heights/9815
>>~~~~~~~~<=============>~~~~~~~~<
Technical Details
Message-ID: <73algh$5ps1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36586170.A4A677D4@collegemail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6cc14c4eb4d410f7
X-Google-Attributes: gidf74b3,public
From: "Michael A. Long" <mlong@cmc.net>
Subject: Re: class = null ?!
Date: 1998/11/22
Message-ID: <73algh$5ps1@forums.borland.com>
X-Deja-AN: 414670496
References: <36586170.A4A677D4@collegemail.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: California State University, Chico
Newsgroups: borland.public.jbuilder.java.language