[Issue 6857] Precondition contract checks should be statically bound.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 10 05:50:10 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6857



--- Comment #82 from yebblies <yebblies at gmail.com> 2012-07-10 22:50:07 EST ---
(In reply to comment #81)
> (In reply to comment #80)
> > (In reply to comment #79)
> >> - we have variadics that are really just C's variadics with 
> >> typeinfo added
> > 
> > We also have C's variadics.
> 
> But no use case I can see for using a C-style variadic for a D class method.
> 

I dunno, maybe you want to pass the args on to vprintf or something...  Does it
really matter?

> >> Something else I should've realised earlier: Why do D class methods 
> >> need to be directly callable from C?  (How does C code hold a 
> >> reference to a D object, anyway?)  Indeed, is even C++ designed to 
> >> accommodate this?
> > 
> > COM classes defined in D are callable from C (and you could define 
> > other classes the same way).
> 
> But do any COM interfaces define C-style variadic methods?  Do we need to be
> open to this possibility, or are we wasting our time by worrying about it?

COM does not use the C calling convention.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list