Message: Re: /control/foreach possible bug Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: /control/foreach possible bug 

Forum: (Graphical) User Interfaces
Re: Warning /control/foreach possible bug (C Mos)
Date: 17 Apr, 2014
From: C Mos <C Mos>

Ok so I was able to figure out (sort of) the bug that exist in the /control/foreach command. Here you can see it in my simple example. Run the folloiwng lines:

  /control/alias CM "1"
  /control/foreach ./g4macros/kookoo.mac CM "p pi- mu-"

The macro file kookoo.mac has the following line in it:

  /control/echo {CM}

The output I get is:


Here in the output you can see the last element has an extra character referring to the char >>"<<. This causes the command to crash when executing the last element in the list. Please fix this bug!!!! Otherwise the /control/foreach command is not that useful.


C Mos

[P.S. Idk if to attach to this post the feedback or sad face... oh well, maybe it is just an idea...]

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: /control/foreach possible bug   (Michael H. Kelsey - 17 Apr, 2014)
2 None: Re: /control/foreach possible bug   (John Allison - 18 Apr, 2014)
1 None: Re: /control/foreach possible bug   (Michael H. Kelsey - 18 Apr, 2014)
(_ None: Re: /control/foreach possible bug   (C Mos - 18 Apr, 2014)
3 More: Re: /control/foreach possible bug   (C Mos - 26 Apr, 2014)
 Add Message Add Message
to: "Re: /control/foreach possible bug"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]