Skip to content

bug in using compileNimble with nf with setup code #191

@paciorek

Description

@paciorek

The basic example in line 21 of test-compileNimble.R is failing when it tries to set up the symbol table to contain x, when calling typeList2symbolTable. That in turn calls symTab$addSymbol on the output of type2symbol.

In type2symbol, we call nTypeSpec with argument ttypeToUse being:

<quosure>
expr: ^<symblBsc>
env:  empty

and we try to do funName <- deparse(typeToUse[[1]]), but typeToUse is a symbol that doesn't have a [[1]] element:

Browse[1]> typeToUse
x: integer sizes = (NA), nDim = 1

So maybe the issue is that when we are calling NC_InternalsClass' initialize, we need that Cpublic elements for the member data to not be in symbol form, when we are preparing things in NF_2_nClass and nimbleSymTab_to_nComp_types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions