Thread overview | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 11, 2012 [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
..\dmd -g -d -ofmydll2.dll -version=use_patch mydll2.d dll2.d mydll2.def
dll2.d(53): Error: no property 'findThread' for type 'core.thread.Thread'
--- errorlevel 1
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime
|
May 12, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | It had been deprecated for eons and was finally removed recently. The new function to use is thread_findByAddr. Regards, Alex On Sat, May 12, 2012 at 12:02 AM, Walter Bright <walter@digitalmars.com> wrote: > ..\dmd -g -d -ofmydll2.dll -version=use_patch mydll2.d dll2.d mydll2.def dll2.d(53): Error: no property 'findThread' for type 'core.thread.Thread' > > --- errorlevel 1 > _______________________________________________ > D-runtime mailing list > D-runtime@puremagic.com > http://lists.puremagic.com/mailman/listinfo/d-runtime _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
May 12, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | See commit c97b1e9074321f3aa9ea42cd7e91711ac6055e46 in particular. Regards, Alex On Sat, May 12, 2012 at 12:05 AM, Alex Rønne Petersen <xtzgzorex@gmail.com> wrote: > It had been deprecated for eons and was finally removed recently. The new function to use is thread_findByAddr. > > Regards, > Alex > > On Sat, May 12, 2012 at 12:02 AM, Walter Bright <walter@digitalmars.com> wrote: >> ..\dmd -g -d -ofmydll2.dll -version=use_patch mydll2.d dll2.d mydll2.def dll2.d(53): Error: no property 'findThread' for type 'core.thread.Thread' >> >> --- errorlevel 1 >> _______________________________________________ >> D-runtime mailing list >> D-runtime@puremagic.com >> http://lists.puremagic.com/mailman/listinfo/d-runtime _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
May 12, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | On 12 May 2012, at 0:05, Alex Rønne Petersen wrote: > It had been deprecated for eons and was finally removed recently. The > new function to use is thread_findByAddr. It always struck me as odd that the core.thread underscore/extern( C ) functions are actually supposed to be called directly from user code. For the rest of druntime, it's the other way round, e.g. in case of Runtime vs. rt_* … David _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
May 11, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | The dll example clearly needs to be updated, but I find it interesting that it didn't fail before when compiling against a deprecated function? Do these tests have -d on the command-line, or is it enough hat core.thread itself is build with -d? On May 11, 2012, at 3:05 PM, Alex Rønne Petersen wrote: > It had been deprecated for eons and was finally removed recently. The new function to use is thread_findByAddr. > > Regards, > Alex > > On Sat, May 12, 2012 at 12:02 AM, Walter Bright <walter@digitalmars.com> wrote: >> ..\dmd -g -d -ofmydll2.dll -version=use_patch mydll2.d dll2.d mydll2.def dll2.d(53): Error: no property 'findThread' for type 'core.thread.Thread' >> >> --- errorlevel 1 >> _______________________________________________ >> D-runtime mailing list >> D-runtime@puremagic.com >> http://lists.puremagic.com/mailman/listinfo/d-runtime > _______________________________________________ > D-runtime mailing list > D-runtime@puremagic.com > http://lists.puremagic.com/mailman/listinfo/d-runtime _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
May 11, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On May 11, 2012, at 3:29 PM, David Nadlinger wrote: > On 12 May 2012, at 0:05, Alex Rønne Petersen wrote: >> It had been deprecated for eons and was finally removed recently. The new function to use is thread_findByAddr. > > It always struck me as odd that the core.thread underscore/extern( C ) functions are actually supposed to be called directly from user code. For the rest of druntime, it's the other way round, e.g. in case of Runtime vs. rt_* … They never got a nice wrapper like the Runtime and GC routines. I think this was simply because they should be used so infrequently, particularly from D code, that it didn't seem worthwhile. This should probably change. _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
May 12, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | We could always write static wrappers in the Thread class that just calls them. But what about C code? We will have to export these functions to C one way or another, so we can't get rid of them. Regards, Alex On Sat, May 12, 2012 at 12:31 AM, Sean Kelly <sean@invisibleduck.org> wrote: > On May 11, 2012, at 3:29 PM, David Nadlinger wrote: > >> On 12 May 2012, at 0:05, Alex Rønne Petersen wrote: >>> It had been deprecated for eons and was finally removed recently. The new function to use is thread_findByAddr. >> >> It always struck me as odd that the core.thread underscore/extern( C ) functions are actually supposed to be called directly from user code. For the rest of druntime, it's the other way round, e.g. in case of Runtime vs. rt_* … > > They never got a nice wrapper like the Runtime and GC routines. I think this was simply because they should be used so infrequently, particularly from D code, that it didn't seem worthwhile. This should probably change. > _______________________________________________ > D-runtime mailing list > D-runtime@puremagic.com > http://lists.puremagic.com/mailman/listinfo/d-runtime _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
May 12, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | The command line Walter posted included -d. We really should stop using that function in druntime, phobos, etc... Regards, Alex On Sat, May 12, 2012 at 12:30 AM, Sean Kelly <sean@invisibleduck.org> wrote: > The dll example clearly needs to be updated, but I find it interesting that it didn't fail before when compiling against a deprecated function? Do these tests have -d on the command-line, or is it enough hat core.thread itself is build with -d? > > On May 11, 2012, at 3:05 PM, Alex Rønne Petersen wrote: > >> It had been deprecated for eons and was finally removed recently. The new function to use is thread_findByAddr. >> >> Regards, >> Alex >> >> On Sat, May 12, 2012 at 12:02 AM, Walter Bright <walter@digitalmars.com> wrote: >>> ..\dmd -g -d -ofmydll2.dll -version=use_patch mydll2.d dll2.d mydll2.def dll2.d(53): Error: no property 'findThread' for type 'core.thread.Thread' >>> >>> --- errorlevel 1 >>> _______________________________________________ >>> D-runtime mailing list >>> D-runtime@puremagic.com >>> http://lists.puremagic.com/mailman/listinfo/d-runtime >> _______________________________________________ >> D-runtime mailing list >> D-runtime@puremagic.com >> http://lists.puremagic.com/mailman/listinfo/d-runtime > > _______________________________________________ > D-runtime mailing list > D-runtime@puremagic.com > http://lists.puremagic.com/mailman/listinfo/d-runtime _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
May 11, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | On 5/11/2012 3:30 PM, Sean Kelly wrote: > The dll example clearly needs to be updated, but I find it interesting that it didn't fail before when compiling against a deprecated function? Do these tests have -d on the command-line, Yes. > or is it enough hat core.thread itself is build with -d? > > On May 11, 2012, at 3:05 PM, Alex Rønne Petersen wrote: > >> It had been deprecated for eons and was finally removed recently. The >> new function to use is thread_findByAddr. >> >> Regards, >> Alex >> >> On Sat, May 12, 2012 at 12:02 AM, Walter Bright<walter@digitalmars.com> wrote: >>> ..\dmd -g -d -ofmydll2.dll -version=use_patch mydll2.d dll2.d mydll2.def >>> dll2.d(53): Error: no property 'findThread' for type 'core.thread.Thread' >>> >>> --- errorlevel 1 >>> _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
May 11, 2012 Re: [D-runtime] Windows DLL support breaks again with latest druntime | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | ..\dmd -g -d -ofmydll2.dll -version=use_patch mydll2.d dll2.d mydll2.def dll2.d(53): Error: no property 'thread_findByAddr' for type 'core.thread.Thread' On 5/11/2012 3:05 PM, Alex Rønne Petersen wrote: > It had been deprecated for eons and was finally removed recently. The > new function to use is thread_findByAddr. > > Regards, > Alex > > On Sat, May 12, 2012 at 12:02 AM, Walter Bright<walter@digitalmars.com> wrote: >> ..\dmd -g -d -ofmydll2.dll -version=use_patch mydll2.d dll2.d mydll2.def >> dll2.d(53): Error: no property 'findThread' for type 'core.thread.Thread' >> >> --- errorlevel 1 >> _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
Copyright © 1999-2021 by the D Language Foundation