Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Various possible bugs #65

@smarr

Description

@smarr

These were reported by @sillycross.

Code:

hello2 = (
  run = (
    hello2 methods do: [ :meth |
        meth holder print.
        meth signature println.
    ].
    Integer methods do: [ :meth |
        meth holder print.
        meth signature println.
    ].
  )
  ---
  func = (
    1 println.
  )
  func2 = (
    2 println.
  )
)
  • the --- parsing is in some way broken, though, not sure. ---- is the separator between instance and class side. But --- func = () should probably parse into a method called #---
  • The "Integer" part triggers a crash.
  • keywordSelectorSyms in Parser.cpp needs to end with NONE. Your code happens to work because most C compilers will pad zeros for global arrays to multiple of 8 or 16 bytes.
hello = (
  run = (
    | b |
    b := [ 1 println. ].
    c := [ 2 println. ].
    b whileTrue: c.
  )
)
  • should give a parse error when writing to c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions