473,385 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Restriction of Managed Types

In the MSDN topic for MC++ "Restriction of Managed Types", I read that GC
and value types "cannot contain pointers to other managed types ". That
can't be right. Does it really mean to say that a __gc class can not have a
pointer to an object of another __gc class ? I must be missing something in
the documentation, but OOP programming as I know it would end if a class
couldn't have a pointer to an object of another class. What have I missed
here in the explanation ?
Nov 16 '05 #1
5 978
Edward Diener wrote:
In the MSDN topic for MC++ "Restriction of Managed Types", I read that GC
and value types "cannot contain pointers to other managed types ". That
can't be right. Does it really mean to say that a __gc class can not have a
pointer to an object of another __gc class ? I must be missing something in
the documentation, but OOP programming as I know it would end if a class
couldn't have a pointer to an object of another class. What have I missed
here in the explanation ?


You're talking about this:

http://msdn.microsoft.com/library/de...nagedtypes.asp

I'm not sure what the article meant to say, but your instincts are correct.
What it says is wrong.

--
Doug Harrison
Microsoft MVP - Visual C++
Nov 16 '05 #2
Yes, I agree. I'll get the topic fixed.

Thanks for the catch.

Ronald Laeremans
Visual C++ team

"Doug Harrison [MVP]" <ds*@mvps.org> wrote in message
news:pb********************************@4ax.com...
Edward Diener wrote:
In the MSDN topic for MC++ "Restriction of Managed Types", I read that GC
and value types "cannot contain pointers to other managed types ". That
can't be right. Does it really mean to say that a __gc class can not have apointer to an object of another __gc class ? I must be missing something inthe documentation, but OOP programming as I know it would end if a class
couldn't have a pointer to an object of another class. What have I missed
here in the explanation ?
You're talking about this:

http://msdn.microsoft.com/library/de...nagedtypes.asp
I'm not sure what the article meant to say, but your instincts are correct. What it says is wrong.

--
Doug Harrison
Microsoft MVP - Visual C++

Nov 16 '05 #3
Doug Harrison [MVP] wrote:
Edward Diener wrote:
In the MSDN topic for MC++ "Restriction of Managed Types", I read
that GC and value types "cannot contain pointers to other managed
types ". That can't be right. Does it really mean to say that a __gc
class can not have a pointer to an object of another __gc class ? I
must be missing something in the documentation, but OOP programming
as I know it would end if a class couldn't have a pointer to an
object of another class. What have I missed here in the explanation ?
You're talking about this:

http://msdn.microsoft.com/library/de...nagedtypes.asp

Yes.

I'm not sure what the article meant to say, but your instincts are
correct. What it says is wrong.


Glad to know that.
Nov 16 '05 #4
Ronald Laeremans [MSFT] wrote:
Yes, I agree. I'll get the topic fixed.

Thanks for the catch.
No problem. As a C++ programmer, I am trying to learn MC++ programming and
it surely couldn't be correct.

Ronald Laeremans
Visual C++ team

"Doug Harrison [MVP]" <ds*@mvps.org> wrote in message
news:pb********************************@4ax.com...
Edward Diener wrote:
In the MSDN topic for MC++ "Restriction of Managed Types", I read
that GC and value types "cannot contain pointers to other managed
types ". That can't be right. Does it really mean to say that a
__gc class can not have a pointer to an object of another __gc
class ? I must be missing something in the documentation, but OOP
programming as I know it would end if a class couldn't have a
pointer to an object of another class. What have I missed here in
the explanation ?


You're talking about this:

http://msdn.microsoft.com/library/de...nagedtypes.asp

I'm not sure what the article meant to say, but your instincts are
correct. What it says is wrong.

--
Doug Harrison
Microsoft MVP - Visual C++

Nov 16 '05 #5
BTW, second guessing what we did mean, the most likely explanation is that
we meant to say "interior pointer". Which would have made the statement
correct.

Ronald

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
Doug Harrison [MVP] wrote:
Edward Diener wrote:
In the MSDN topic for MC++ "Restriction of Managed Types", I read
that GC and value types "cannot contain pointers to other managed
types ". That can't be right. Does it really mean to say that a __gc
class can not have a pointer to an object of another __gc class ? I
must be missing something in the documentation, but OOP programming
as I know it would end if a class couldn't have a pointer to an
object of another class. What have I missed here in the explanation ?
You're talking about this:

http://msdn.microsoft.com/library/de...nagedtypes.asp
Yes.

I'm not sure what the article meant to say, but your instincts are
correct. What it says is wrong.


Glad to know that.

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lars Geldner | last post by:
Hello, I'm searching for a possibility to define a complex type using xml schema that can only be derived by restriction. The sub-complex type should have a content model that only contains...
1
by: hre1 | last post by:
hello stan, thank you very much for your fast replay! your solution will help to solve my problem. but i try to understand !why! sqc and xmlspy produce this messages: SQC means:TYPE...
3
by: Brett Gerhardi | last post by:
Hi all, can anyone explain why the following isn't valid? <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"...
0
by: Deep Purple | last post by:
I started with the following error... ------------------------------------------------------- An error occured while loading the schema with TargetNamespace 'http://www.w3.org/2001/XMLSchema'...
3
by: Dave | last post by:
I'm at a point where I would really like to focus in on learning .NET but am having a hard time deciding which language to use. I learned to program in C++ but have spent quite a bit of time using...
3
by: zhphust | last post by:
I want to convert a object of a managed class to a unmanaged structure that has the same member with that managed class. Can anybody tell me how i can do it? Thanks in advance. -- zhphust...
4
by: William F. Kinsley | last post by:
My understanding is that when I re-compile a existing MFC application with the /clr switch, that the code generated is managed(with some exceptions) but that the data isn't, i.e. not garbage...
5
by: bclark76 | last post by:
I am getting a strange error, maybe someone knows why it is occurring.. I get the following error when I try to validate Untitled8.xml in Altova XMLSPY: Validation error in another file:...
6
by: burkley | last post by:
In XML Schema, is it possible to derive a complex type via restriction and have the new derived type be in a different namespace than the original base type? I've banged on this for 2 days now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.