Shop OBEX P1 Docs P2 Docs Learn Events
Odd Spin Error — Parallax Forums

Odd Spin Error

Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
edited 2010-11-04 22:05 in Propeller 1
'Ran into this today, with a variable named "dev":

attachment.php?attachmentid=75012&stc=1&d=1288907803

Apparently DEV has been reserved as a block heading (like CON, DAT, etc.). So I changed the variable name to something else and typed "DEV" into my program as if it were a block heading. It wasn't highlighted in the editor, but the program compiled! There's nothing in the manual about DEV blocks or "DEV" being a reserved word, so I wonder what was planned for it that hasn't (yet) materialized.

-Phil

_
552 x 199 - 9K

Comments

  • KyeKye Posts: 2,200
    edited 2010-11-04 17:00
    Lots of errors with the spin tool.
  • $WMc%$WMc% Posts: 1,884
    edited 2010-11-04 18:48
    'Ran into this today, with a variable named "dev":

    attachment.php?attachmentid=75012&stc=1&d=1288907803

    Apparently DEV has been reserved as a block heading (like CON, DAT, etc.). So I changed the variable name to something else and typed "DEV" into my program as if it were a block heading. It wasn't highlighted in the editor, but the program compiled! There's nothing in the manual about DEV blocks or "DEV" being a reserved word, so I wonder what was planned for it that hasn't (yet) materialized.

    -Phil

    _
    '
    I was thinking more like a Bill Gates maneuver, Always leave your self a little something on the back side that no one knows about.
    '
    I have run across code written by Parallax staff for the BS2xx that can't be found in any publication any where. I think this is job security.
    '
    Did you run any memory maps, Pre and post?
    '
    You didn't post the full codes, So I couldn't run any test.
  • wjsteelewjsteele Posts: 697
    edited 2010-11-04 18:57
    Actually, poking around, I found that it takes some parameters.

    The first parameter is either "PRECOMPILE" or "ARCHIVE"

    The second parameter is a filename.

    Wonder what it does... I typed in a filename, but it doesn't appear to do anything.

    Bill
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-11-04 19:02
    Hmmm. This is getting more interesting...

    -Phil
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-11-04 20:45
    I tried it to and it came up with the same message.. Perhaps Parallax put it in the Propeller tool as a future function or something...
  • bill190bill190 Posts: 769
    edited 2010-11-04 21:28
    Either of these work...

    dev

    'PRECOMPILE "testing"
    ARCHIVE "testing"
  • bill190bill190 Posts: 769
    edited 2010-11-04 22:05
    Google knows everything, so I asked...

    Compile Error: Block Designator Must Be In The First Column
    Module: WinBond Driver
    Routine: PRI sendRecv(dev, sD, rCt, rA) | i, m ' Send and possibly receive
    ..................................^^^ Error cursor at dev

    ...

    "Dev is a reserved word (a block) in the Parallax compiler."

    Above from...
    http://forums.parallax.com/archive/index.php/t-112670.html
Sign In or Register to comment.