sepiaRabbit
Programmer
Hey guys,
I am pretty new to Foxpro and I was trying to make a simple class that implements the builder pattern. Everything seems to work fine except when I try to chain methods together. Is this something that is not supported by Foxpro? or maybe I am missing something?
Here is an example of where my program errors
Thanks!
I am pretty new to Foxpro and I was trying to make a simple class that implements the builder pattern. Everything seems to work fine except when I try to chain methods together. Is this something that is not supported by Foxpro? or maybe I am missing something?
Here is an example of where my program errors
Code:
sandwich_builder.set_lettuce().set_tomatoes().set_meat("turkey")
Thanks!