but if the [output "suit"] fires, that means, this must have been the case.
Boo's isa is fine with that. Please read the code again: obviously it enters
into the if clause, because it outputs the 'suit' debug value, but somehow
cannot update the subView field from the outer scope. It always stays with
it's original value "xx".

On Sat, Jan 10, 2009 at 4:38 PM, Ayende Rahien <[email protected]> wrote:

> Make sure that you actually get a corproate one, and not a proxy of the
> common type instead.
>
>
> On Sat, Jan 10, 2009 at 8:36 PM, Jan Limpens <[email protected]>wrote:
>
>> no, in this case viewData.Customer is a CorporateCustomer, it outputs
>> 'suit'
>>
>>
>> On Sat, Jan 10, 2009 at 4:29 PM, Ayende Rahien <[email protected]> wrote:
>>
>>> viewData is not individual customer nor corporate customer ?
>>>
>>>
>>> On Sat, Jan 10, 2009 at 6:25 PM, Jan Limpens <[email protected]>wrote:
>>>
>>>> Hello,
>>>>
>>>> this is a pretty basic code block:
>>>>
>>>>     subView = "xx"
>>>>     if viewData.Customer isa IndividualCustomer:
>>>>         subView = "IndividualCustomer"
>>>>         output "indie"
>>>>     elif viewData.Customer isa CorporateCustomer:
>>>>         subview = "CorporateCustomer"
>>>>         output "suit"
>>>>     end
>>>>     output "<br/>subview: ${subView}"
>>>>
>>>> this outputs (in the corporate case):
>>>>
>>>> suit
>>>> <br/>subview: xxx
>>>>
>>>> which is not what I would expect. Is there a way around this? Seems
>>>> brail/boo is way more functional that it might appear...
>>>>
>>>> --
>>>> Jan
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Jan
>>
>>
>>
>
> >
>


-- 
Jan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to