Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
February 03, 2016 Call D from TCL | ||||
---|---|---|---|---|
| ||||
Attachments:
| Is there any example,framework or tutorial on how to call D from Tcl (write new commands in D for Tcl)?
I am on Windows 10 x86_64.
thank you.
--
Dr. Vasileios Anagnostopoulos (MSc,PhD)
Researcher/Developer
ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece
T (+30) 2107723404 M (+30) 6936935388
E vanag@mail.ntua.gr<mailto:vanag@mail.ntua.gr> www.ntua.gr<
http://www.ntua.gr/>
|
February 03, 2016 Re: Call D from TCL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vasileios Anagnostopoulos | On Wednesday, 3 February 2016 at 12:20:42 UTC, Vasileios Anagnostopoulos wrote:
> Is there any example,framework or tutorial on how to call D from Tcl (write new commands in D for Tcl)?
>
> I am on Windows 10 x86_64.
>
> thank you.
I'm not sure about the specifics but if it can be done in C you can just 'extern(C)' and do it like C.
|
February 03, 2016 Re: Call D from TCL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vasileios Anagnostopoulos | On Wednesday, 3 February 2016 at 12:20:42 UTC, Vasileios Anagnostopoulos wrote: > Is there any example,framework or tutorial on how to call D from Tcl (write new commands in D for Tcl)? > > I am on Windows 10 x86_64. > > thank you. I've created a wrapper around Tcl/Tk to create GUI's here: https://github.com/nomad-software/tkd It uses the library found here: https://github.com/nomad-software/tcltk In the project, I've created a simple interpreter which handles communicating to Tcl here: https://github.com/nomad-software/tkd/blob/master/source/tkd/interpreter/tcl.d There is a method on that class for creating commands for use in Tcl. |
February 03, 2016 Re: Call D from TCL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby Attachments:
| Thank you very much. I investigate Tcl_CmdProc more closely. On Wed, Feb 3, 2016 at 3:50 PM, Gary Willoughby via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: > On Wednesday, 3 February 2016 at 12:20:42 UTC, Vasileios Anagnostopoulos wrote: > >> Is there any example,framework or tutorial on how to call D from Tcl (write new commands in D for Tcl)? >> >> I am on Windows 10 x86_64. >> >> thank you. >> > > I've created a wrapper around Tcl/Tk to create GUI's here: > > https://github.com/nomad-software/tkd > > It uses the library found here: > > https://github.com/nomad-software/tcltk > > In the project, I've created a simple interpreter which handles communicating to Tcl here: > > > https://github.com/nomad-software/tkd/blob/master/source/tkd/interpreter/tcl.d > > There is a method on that class for creating commands for use in Tcl. > -- Dr. Vasileios Anagnostopoulos (MSc,PhD) Researcher/Developer ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece T (+30) 2107723404 M (+30) 6936935388 E vanag@mail.ntua.gr<mailto:vanag@mail.ntua.gr> www.ntua.gr< http://www.ntua.gr/> |
February 03, 2016 Re: Call D from TCL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vasileios Anagnostopoulos | On Wednesday, 3 February 2016 at 14:19:32 UTC, Vasileios Anagnostopoulos wrote: > Thank you very much. I investigate > > Tcl_CmdProc > > more closely. > > On Wed, Feb 3, 2016 at 3:50 PM, Gary Willoughby via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: > >> On Wednesday, 3 February 2016 at 12:20:42 UTC, Vasileios Anagnostopoulos wrote: >> >>>[...] >> >> I've created a wrapper around Tcl/Tk to create GUI's here: >> >> https://github.com/nomad-software/tkd >> >> It uses the library found here: >> >> https://github.com/nomad-software/tcltk >> >> In the project, I've created a simple interpreter which handles communicating to Tcl here: >> >> >> https://github.com/nomad-software/tkd/blob/master/source/tkd/interpreter/tcl.d >> >> There is a method on that class for creating commands for use in Tcl. Here's the reference to the C interface: https://www.tcl.tk/man/tcl/TclLib/contents.htm |
Copyright © 1999-2021 by the D Language Foundation