help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible Parser Issue


From: Gary Highberger
Subject: Possible Parser Issue
Date: Fri, 22 Jan 2021 15:26:51 -0500

Hello,
In lines 10-14 below I think the parser is taking the decimal point to be a
period. If I add a period after the decimal point I get a compile error. No
biggie. Just letting everyone know.

1 Object subclass: PIDCntlr [
  2     | pgain igain dgain acc oldErr myName|
  3     PIDCntlr class >> new: name [
  4         | r |
  5         r := super new .
  6         r init: name .
  7         ^r.
  8     ]
  9     init: name [
 10         pgain := 0.
 11         igain := 0.
 12         dgain :=0.
 13         acc := 0.
 14         oldErr := 0.
 15         myName := name .
 16     ]
 17     wru [
 18         ^myName
 19     ]
 20 ]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]