zwortex

Results comments of zwortex

Related notes and other cases in the [wiki](https://github.com/red/red/wiki/%5BNOTES%5D-Conditionals)

Case distinguishes conditions from actions by referring to their positions in the block. Not the type of the element : true could be the action returned in case of false....

When compiling, a syntax error is raised. For instance, this script : ``` Red [] a: 2 b: case [ a == 1 [ "1" ] [] ] probe b...

As discussed here : https://gitter.im/red/help?at=60a3bf925ca66330b04dfba2 A similar compile issue occurs in the snippet below that is trimmed down from a real-case issue with layout as the function f returning a...

Another use case : cryptic errors when loading a script that has a function without body argument The following scripts have the same error : the body function of function...

Following discussion on [gitter](https://gitter.im/red/bugs?at=6001796099549911fc233e06 ), here is another use case for this issue, that may be similar. To reproduce, you need to retrieve this [script](https://gist.github.com/zwortex/56b0d90befb1b01e189c1aa044b4a2ce) and run it with the...

The following sequence has the same effect : ``` a: #{ name: "john" family: "doe" } ``` see chat with @hiiamboris for more details https://gitter.im/red/bugs?at=600603d58816425540d5df4a

Hi hiiamboris, Thanks for the reply and the explanation. I get it better now that the values of the switch block are not evaluated, hence the distinction between other branching...

@hiiamboris, @greggirwin, @DideC I understand perfectly that the value are not interpreted. This is not an issue as far as I am concerned. You have the case structure for that...

Hi hiiamboris, greggirwin, Thanks for your replies. I'll see about Gitter chat however it looks to me that it is more relevant for troubleshooting. In this particular case, I understand...