digitalmars.D - Customized safe like semantics for user attributes?
- d coder <dlang.coder gmail.com> Mar 15 2013
--20cf30223b51dc5ce704d7f64b63 Content-Type: text/plain; charset=ISO-8859-1 Hello I am looking for safe like semantics for a user defined attribute. Say the attribute is named foo, then I want to make sure that functions declared with the attribute can call only the functions declared with the same attribute. There could be other possibilities as well, like a function without foo attribute not being able to call a function with the attribute in its body. As far as I know D does not allow static or dynamic implementation of such semantics today. But still I thought I should check it up with the experts on the group. Can this type of checking be created at compile time or even at runtime? If not, will it be a sound enhancement request? Any ideas. Regards - Puneet --20cf30223b51dc5ce704d7f64b63 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello<div><br></div><div>I am looking for safe like semantics for a user d= efined attribute. Say the attribute is named foo, then I want to make sure= that functions declared with the attribute can call only the functions dec= lared with the same attribute. There could be other possibilities as well, = like a function without foo attribute not being able to call a function wi= th the attribute in its body.</div> <div><br></div><div>As far as I know D does not allow static or dynamic imp= lementation of such semantics today. But still I thought I should check it = up with the experts on the group. Can this type of checking be created at c= ompile time or even at runtime? If not, will it be a sound enhancement requ= est?</div> <div><br></div><div>Any ideas.</div><div><br></div><div>Regards</div><div>-= Puneet</div> --20cf30223b51dc5ce704d7f64b63--
Mar 15 2013








d coder <dlang.coder gmail.com>