Several questions (about inline assembly, ddoc for templates, and foreach)
Marcio
m.faustino at gmail.com
Sat Aug 19 08:59:33 PDT 2006
Hi all,
I have several questions I cannot find elsewhere:
1 - Using inline assembly, how can I access the "ptr" attribute of an array? For example:
void main() {
int[] array;
asm {
mov EAX, array.ptr;
}
}
The compiler says: "identifier expected".
2 - Is Ddoc working for templates? If it is, I can't make it generate the documentation for some template functions...
3 - Is there a way to manually increment the index of a foreach loop? I ask this because the index cannot be made inout,
only the value.
Thanks,
More information about the Digitalmars-d-learn
mailing list