[Issue 5212] Safer typesafe variadics

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 16 12:43:18 PST 2010


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



--- Comment #7 from bearophile_hugs at eml.cc 2010-11-16 12:42:05 PST ---
One of the many posts of the relative thread:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=122157


(In reply to comment #6)

> Variadic arguments are arguments, and arguments are on the stack.

A dynamic array argument is an argument, it is on the stack, and most times its
contents are on the heap. But not always.


> T[] is not a dynamic array, it's a slice.

This is not significant. What is significant is where the memory it points is
located.


> Messing python idioms into D, while
> those idioms were not implemented in D, is a bug-prone way of thinking
> (misunderstanding).

Python wasn't part of this discussion.

-- 
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