Talk:Program name: Difference between revisions

Content added Content deleted
(Response)
Line 9: Line 9:
}</lang>
}</lang>
:That doesn't work. There is no enclosing class for Object so it's an NPE when you try to get the name. I'll correct the example. --[[User:Mwn3d|Mwn3d]] 04:32, 6 August 2011 (UTC)
:That doesn't work. There is no enclosing class for Object so it's an NPE when you try to get the name. I'll correct the example. --[[User:Mwn3d|Mwn3d]] 04:32, 6 August 2011 (UTC)
:Fwend, thanks for trying. I agree, it's pointless to hardcode the class and then ask for it as a string. --[[User:Mcandre]]


==Question on the goal of the task==
==Question on the goal of the task==
Line 15: Line 16:
# Give the name of the file being interpreted in the case of interpreted code.
# Give the name of the file being interpreted in the case of interpreted code.
The task description seems OK for interpreters, but the C example does not fit the task. Maybe the task description needs an update? --[[User:Paddy3118|Paddy3118]] 02:43, 6 August 2011 (UTC)
The task description seems OK for interpreters, but the C example does not fit the task. Maybe the task description needs an update? --[[User:Paddy3118|Paddy3118]] 02:43, 6 August 2011 (UTC)
:The point is to identify the program name, which may mean different things in different languages. For compiled languages, the best you can do is identify the final executable. For interpreted languages, the program is often considered to be the source code file name. --[[User:Mcandre]]


==Re-title?==
==Re-title?==
Suggest the task be renamed "Script name" which is more in line with RC style? --[[User:Paddy3118|Paddy3118]] 02:46, 6 August 2011 (UTC)
Suggest the task be renamed "Script name" which is more in line with RC style? --[[User:Paddy3118|Paddy3118]] 02:46, 6 August 2011 (UTC)
:+1 --[[User:Mwn3d|Mwn3d]] 04:32, 6 August 2011 (UTC)
:+1 --[[User:Mwn3d|Mwn3d]] 04:32, 6 August 2011 (UTC)
:+1 Sure, I don't mind. Consistency above all. --[[User:Mcandre]]