http://d.puremagic.com/issues/show_bug.cgi?id=7897
--- Comment #3 from Manu <[email protected]> 2012-04-20 12:50:03 PDT --- Actually no, I'm not trying to do pointer to member type stuff. As I saw it, this is just a single function pointer (surely that is strictly defined by the 'function' keyword?) in a struct. I'm addressing a static (well, __gshared) instance, 'd'. Shouldn't d be a singular instance, allocated in the data block, and thereby accessible at compile time? I figure this should effectively be no different than a __gshared void*. Have I misunderstood something rather fundamental about __gshared? This should make it effectively identical to a C global right? Ie, singular instance, allocated in the data block, and address known at compile time. Under that assumption, there's no technical reason the compiler shouldn't be able to alias that variable at compile time and generate appropriate code. If I'm mistaken about that, how do I produce a variable effectively identical to a C global? Like I say, this is a very boiled down case, and infact, this particular case is no longer directly relevant in my code, but the same scenario is coming up frequently. That is, I have a global instance of a structure, which I expect should be accessible at compile time... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
