Re: [Sugar-devel] [Music Blocks] Hidden Blocks

2020-04-04 Thread Anindya Kundu
Got it. Thanks.

On Sun, 5 Apr 2020 at 02:13, Walter Bender  wrote:

>
>
> On Sat, Apr 4, 2020 at 3:15 PM Anindya Kundu 
> wrote:
>
>> As I can find, these blocks are present at the end of clamp blocks (e.g.
>> note block).
>>
>
> Sorry. I misread your earlier post.
> The way that clamp blocks work is that they "push" a state, process their
> contained blocks, and then "pop" the state when the next block is run. But
> there isn't always guaranteed to be a next block, so I add "hidden" blocks
> to ensure there is always a block to pop the stack of a clamp, A bit of a
> kludge but at the time, I didn't see an easier work-around.
>
>
>>
>>
>> *Anindya Kundu*
>>
>> *BTech, 6th Semester*
>> *Dept. of Information Technology*
>>
>> *Indian Institute of Engineering Science and Technology, Shibpur*
>>
>>
>>
>> On Sun, 5 Apr 2020 at 00:37, Walter Bender 
>> wrote:
>>
>>>
>>>
>>> On Sat, Apr 4, 2020 at 1:53 PM Anindya Kundu 
>>> wrote:
>>>
 The block lists show HiddenNoFlowBlock ("hiddennoflow") and HiddenBlock
 ("hidden") blocks.

 What is their utility / why are they used?

>>>
>>> These blocks are used to swap in when a project has a block that is
>>> unknown to Music Blocks. (That might happen when a project file was somehow
>>> damaged.) The goal is have the project still load under such circumstances.
>>>


 *Anindya Kundu*

 *BTech, 6th Semester*
 *Dept. of Information Technology*

 *Indian Institute of Engineering Science and Technology, Shibpur*

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

>>>
>>>
>>> --
>>> Walter Bender
>>> Sugar Labs
>>> http://www.sugarlabs.org
>>> 
>>>
>>
>
> --
> Walter Bender
> Sugar Labs
> http://www.sugarlabs.org
> 
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [Music Blocks] Hidden Blocks

2020-04-04 Thread Walter Bender
On Sat, Apr 4, 2020 at 1:53 PM Anindya Kundu  wrote:

> The block lists show HiddenNoFlowBlock ("hiddennoflow") and HiddenBlock
> ("hidden") blocks.
>
> What is their utility / why are they used?
>

These blocks are used to swap in when a project has a block that is unknown
to Music Blocks. (That might happen when a project file was somehow
damaged.) The goal is have the project still load under such circumstances.

>
>
> *Anindya Kundu*
>
> *BTech, 6th Semester*
> *Dept. of Information Technology*
>
> *Indian Institute of Engineering Science and Technology, Shibpur*
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel