Shop OBEX P1 Docs P2 Docs Learn Events
Prop' IDE documentation error — Parallax Forums

Prop' IDE documentation error

simonlsimonl Posts: 866
edited 2006-09-23 22:29 in Propeller 1
Just noticed that the documentation view doesn't display·a PRI properly, it just displays any of its documentation comments in with the previous PUB's comments. Example:

PUB· main
· Start display device
· Start memsic 2125
· Mainloop - captures and displays sensor readings
· Capture all measurements·
· Display all measurements
· Pause to allow things to settle
· TV_WText standard characters

I believe this should be:

PUB· main
· Start display device
· Start memsic 2125
· Mainloop - captures and displays sensor readings
· Capture all measurements·
· Display all measurements
PRI settle
··Pause to allow things to settle
CON
··TV_WText standard characters


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,

Simon

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-09-22 18:27
    As is oft' said, thats not a bug it's a design feature. All kidding aside, the documentation mode is designed as a quick user guide for the object. Since PRI functions are not accessible to an end user of the object, these are not included in the documentation. However any text which you designate as documentation using '' or {{...}} is included in the documentation. My advice to make the most readable documentation, use the documentation notation for public functions, but use the comment notation (' or {...}) for private functions.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • simonlsimonl Posts: 866
    edited 2006-09-23 22:29
    Ah, yup, I see what you mean -- I was thinking from the object's developer standpoint -- your suggestion works for me smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,

    Simon
Sign In or Register to comment.