tag->doccomment broken in Lasso 9.3.1b4

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

tag->doccomment broken in Lasso 9.3.1b4

stevepiercy
I can't get tag->doccomment to work in Lasso 9.3.1b4 with custom types.

 From the LassoGuide, slightly modified example:
http://lassoguide.com/language/literals.html#doc-comments

env LASSO9_RETAIN_COMMENTS=1 lasso9 -s "/**!
     This doc comment is associated with this type definition
*/
define foo => type {}
foo -> doccomment"

=>
A Failure
Error Code: -9948
Error Msg: Definition Not Found: foo->doccomment()
Error Stack:

1:99 source
81:12 ../lasso9.lasso
76:3 ../lasso9.lasso
74:3 ../lasso9.lasso
68:3 ../lasso9.lasso
66:15 ../lasso9.lasso
55:3 ../lasso9.lasso
22:3 ../lasso9.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
54:2 ../lasso9.lasso
14:25 ../lasso9.lasso

Then I tried this file:

test.lasso
------------------------------------
#!/usr/bin/env lasso9

/**!
     This doc comment is associated with this type definition
*/
define foo => type {}
::foo -> doccomment
'\n\n'
::array -> doccomment
------------------------------------

Invoked by:

$ env LASSO9_RETAIN_COMMENTS=1 lasso9 ./test.lasso
=>


/**!
An array is an object that can hold multiple values which are
referenced by position. An array can be thought of as a series
of numbered variables or as a list. Array elements are numbered
starting at 1 and are always sequential.

Arrays can hold values of any other data type. Arrays can hold
integers, decimals, strings, pairs, or even other arrays or
maps. The size of an array is only limited by the amount of
memory that is available.
*/

What's the secret to make ->doccomment work on any custom type?

Is this a bug?

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: tag->doccomment broken in Lasso 9.3.1b4

stevepiercy
Correction on the command line:

$ env LASSO9_RETAIN_COMMENTS=1 lasso9 -s "/**! \
     This doc comment is associated with this type definition \
*/ \
define foo => type {} \
::foo -> doccomment"
=>

(empty new lines)

--steve


On 2/4/17 at 1:54 AM, [hidden email] (Steve Piercy -
Website Builder) pronounced:

>I can't get tag->doccomment to work in Lasso 9.3.1b4 with custom types.
>
>From the LassoGuide, slightly modified example:
>http://lassoguide.com/language/literals.html#doc-comments
>
>env LASSO9_RETAIN_COMMENTS=1 lasso9 -s "/**!
>This doc comment is associated with this type definition
>*/
>define foo => type {}
>foo -> doccomment"
>
>=>
>A Failure
>Error Code: -9948
>Error Msg: Definition Not Found: foo->doccomment()
>Error Stack:
>
>1:99 source
>81:12 ../lasso9.lasso
>76:3 ../lasso9.lasso
>74:3 ../lasso9.lasso
>68:3 ../lasso9.lasso
>66:15 ../lasso9.lasso
>55:3 ../lasso9.lasso
>22:3 ../lasso9.lasso
>182:2 error.lasso
>182:2 error.lasso
>176:2 error.lasso
>175:2 error.lasso
>54:2 ../lasso9.lasso
>14:25 ../lasso9.lasso
>
>Then I tried this file:
>
>test.lasso
>------------------------------------
>#!/usr/bin/env lasso9
>
>/**!
>This doc comment is associated with this type definition
>*/
>define foo => type {}
>::foo -> doccomment
>'\n\n'
>::array -> doccomment
>------------------------------------
>
>Invoked by:
>
>$ env LASSO9_RETAIN_COMMENTS=1 lasso9 ./test.lasso
>=>
>
>
>/**!
>An array is an object that can hold multiple values which are
>referenced by position. An array can be thought of as a series
>of numbered variables or as a list. Array elements are numbered
>starting at 1 and are always sequential.
>
>Arrays can hold values of any other data type. Arrays can hold
>integers, decimals, strings, pairs, or even other arrays or
>maps. The size of an array is only limited by the amount of
>memory that is available.
>*/
>
>What's the secret to make ->doccomment work on any custom type?
>
>Is this a bug?
>
>--steve
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy              Website Builder              Soquel, CA
><[hidden email]>               <http://www.stevepiercy.com/>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Loading...