🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6868

Re: value of class object

#6868
From: Simon D
Date: Fri, 08 Apr 2005 18:09
14 lines
1245 bytes
"Alan Bellingham" <alanb@episys.com> wrote in message
news:cstc51dh09jj5g4sqjsqo6qqfuusen7dkv@4ax.com...
> "Simon D" <LightsOnNo1@home.org> wrote:
>
> >Try this
> >public:
> >    operator int(){return iVal;}
>
> Better yet:
>
>   public:
>     operator int() const {return iVal;}

Ah yes, the const. The times I forget it. <g>
Technical Details
Message-ID: <4256c8d5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <42566160$1@newsgroups.borland.com> <42566c79@newsgroups.borland.com> <cstc51dh09jj5g4sqjsqo6qqfuusen7dkv@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1f4e1214f81b2544
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Simon D" <LightsOnNo1@home.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42566160$1@newsgroups.borland.com> <42566c79@newsgroups.borland.com> <cstc51dh09jj5g4sqjsqo6qqfuusen7dkv@4ax.com>
Subject: Re: value of class object
Date: Fri, 8 Apr 2005 19:09:54 +0100
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 81.131.157.60
Message-ID: <4256c8d5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112983765 81.131.157.60 (8 Apr 2005 11:09:25 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail