Skip to content

Inline syntax sometimes coerces multivectors to string #175

Description

@julia-bell

Sometimes, when attempting to add multivectors together inside of an inline function, one of the arguments is converted to a string, resulting in the entire expression turning into a string after + is interpreted as string concatenation. I haven't found out exactly when this happens, but it seems that even something like adding or removing a comment without changing anything else can cause this to occur.

Example where this happens: https://enkimute.github.io/ganja.js/examples/coffeeshop.html#lIXdhUhvx4. Removing the line

+ from.e02*1e02 + 0.2*1e20

causes the expression to be interpreted correctly. But removing the line, then adding several comments within the same expression, causes it to be coerced to a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions