Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why cant protected type methods have a parameter thats an access type?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tricky  
View profile  
 More options Feb 9, 4:15 am
Newsgroups: comp.lang.vhdl
From: Tricky <trickyh...@gmail.com>
Date: Thu, 9 Feb 2012 01:15:08 -0800 (PST)
Local: Thurs, Feb 9 2012 4:15 am
Subject: Why cant protected type methods have a parameter thats an access type?
Yes I know "thems the rules", but I want to know why. Theres nothing
wrong with throwing access types around normal functions and
procedures, so why are protected types so special? There also the
issue I raised a long time ago - you're not allowed to make arrays of
protected types or pointers to them? Are they just trying to hobble
VHDL to force you to use another language for modelling and
verification?

So do protected types count as a half implemented feature of VHDL?
(otherwise I love them, and use them lots for data flow modelling).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JimLewis  
View profile  
 More options Feb 10, 3:38 pm
Newsgroups: comp.lang.vhdl
From: JimLewis <J...@SynthWorks.com>
Date: Fri, 10 Feb 2012 12:38:54 -0800 (PST)
Local: Fri, Feb 10 2012 3:38 pm
Subject: Re: Why cant protected type methods have a parameter thats an access type?
Protected types are intended to guarantee atomic access to any
internal data structure.  If a subprogram returned a pointer to
the internal data structure, atomic access can no longer be
guaranteed.

Can you share a use model for which you would like to use it.
Use models are part of any change request.

Arrays of protected types and pointers to them would be
interesting.  Again, it would be helpful to share a
use model.

> So do protected types count as a half implemented feature of VHDL?

With all things VHDL, the initial introduction of a feature
is often done conservatively.  I suspect there are a number
of things here that need to change.  I started sketching
out some of things I see as problematic:
http://www.eda.org/twiki/bin/view.cgi/P1076/ProtectedTypeUpdates

Anyone doing interesting things with protected types should
join the language committee.  At least participate by
writing up or contributing to proposals on the TWIKI.

If you do not have a TWIKI account yet, send an email directly
to me and I will get you set up.  Feel free to either add your
own separate proposal or start adding stuff under the one
for Protected Types that I started.

Jim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »