Artifacts Associated With Ticket 732477ffffffffffffffffffffffffffffffffff
Ticket change [2391dbed23] (rid 130964) by pauljohn32 on 2003-05-05 04:08:08:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In the upgrade from tcl/tk 8.3 to 8.4, I started to encounter trouble compiling programs in Objective-C that are linked with tcl/tk. We can't compile the Swarm library (www.swarm.org) against 8.4 because "id" is used as a variable name. The problem is that Objective-C uses a reserved word "id" to refer to an object. The problems are in tclDecls.h EXTERN intTcl_JoinThread _ANSI_ARGS_((Tcl_ThreadId id, int* result)); I notice in some of your other functions you have threadId where this one has "id". As it stands, in order to compile Swarm, I have to comment out Tcl_JoinThread from tclDecls.h
- foundin initialized to: "obsolete: 8.4.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "pauljohn32"
- subsystem initialized to: "07. Variables"
- title initialized to:
Please do not use "id" as a dummy variable in functions
- type initialized to: "Bug"
Ticket change [f684459e08] (rid 130314) by msofer on 2003-05-13 01:00:30:
- subsystem changed to: "49. Threading"
Ticket change [dd2c7030fb] (rid 114618) by msofer on 2003-05-13 01:00:31:
- assignee changed to: "mistachkin"
Ticket change [deb00934c9] (rid 114892) by mistachkin on 2003-05-13 09:14:06:
- icomment:
Logged In: YES user_id=113501 According to the ANSI standard, compilers are not supposed to reserve identifiers that do NOT start with an underscore or double underscore. Does anybody know if we support compilation using Objective-C?
- login: "mistachkin"
- mimetype: "text/plain"
- priority changed to: "3 Low"
- username: "mistachkin"
- icomment:
Ticket change [5152383c81] (rid 126121) by pauljohn32 on 2003-05-13 12:06:23:
- icomment:
Logged In: YES user_id=23726 Hello. My understanding has been that in C one cannot have dummy variables named "int", "double", "float", etc. It won't allow a function like int aFunct (int double); or some such thing, right? In Objective-C, "id' is like "double". The problem would go away if you just changed "id" to "threadID" in that one method.
- login: "pauljohn32"
- mimetype: "text/plain"
- username: "pauljohn32"
- icomment:
Ticket change [8731dd1f63] (rid 131654) by patthoyts on 2003-05-13 16:19:05:
- icomment:
Logged In: YES user_id=202636 Bear in mind that this only requires changing in the public header. In fact you could simply delete the word 'id' and leave the bare signature. One wouldn't compile tcl itself with objective-c but should be able to create extensions using this compiler. It certainly used to work (some time ago).
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [c5ebf84bf5] (rid 121669) by mistachkin on 2003-05-13 16:58:13:
- closedate changed to: "2003-05-13T09:58:13"
- closer changed to: "mistachkin"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [9c02da4198] (rid 111211) by mistachkin on 2003-05-13 17:25:53:
- closedate changed to: "2003-05-13T10:25:53"
- closer changed to: "mistachkin"
Ticket change [e44db058f0] (rid 87932) by mistachkin on 2003-05-13 17:27:49:
- closedate changed to: "2003-05-13T10:27:49"
- closer changed to: "mistachkin"