Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calculated determines type #10

Open
kbak opened this issue Jan 4, 2011 · 5 comments
Open

calculated determines type #10

kbak opened this issue Jan 4, 2011 · 5 comments

Comments

@kbak
Copy link

kbak commented Jan 4, 2011

component CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT{
  display "Enable use of virtual vector calling interface"
  active_if [CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT ]
  calculated [1 ]

is translated to

CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
        display = "Enable use of virtual vector calling interface"
        -- ifActive
        [CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT]
        calculated: [this = 
        1]

but
CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT should be CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT -> int

@ghost
Copy link

ghost commented Jan 4, 2011

CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT is of a Boolean Flavor. Calculated 1 should represent true in boolean flavor (correct me if I am wrong)

@kbak
Copy link
Author

kbak commented Jan 4, 2011

ok, so if boolean, then model is optional clafer

@ghost
Copy link

ghost commented Jan 4, 2011

Ok, so there should be "?" at the end, and nothing else should be changed? There should be "?" actually, this is a bug I will check it

@ghost
Copy link

ghost commented Jan 4, 2011

This is important question. When is Clafer optional? For now, I am putting ONLY CDL Options as optional? I will check the documentation once more, but I would appreciate a feedback from other people as well.

@kbak
Copy link
Author

kbak commented Jan 5, 2011

I think there might be more cases, but I'm not sure. We worked that out when I showed the initial translation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant