hi, i want to know how could we define a new type in fantom(instead of returning a string i want to return a variable of type FIELD for example) thanks!
Like Type.field? http://fantom.org/doc/sys/Type.html#field
Thanks but no, i want to create a new type not something that exists
You'll need to provide a bit more info - because all you need to do is create a new class/mixin (which I don't think is what you meant).
its ok i managed in the end.thanks anyways!!
Login or Signup to reply.
fantlan Tue 19 Jun 2012
hi, i want to know how could we define a new type in fantom(instead of returning a string i want to return a variable of type FIELD for example) thanks!
andy Tue 19 Jun 2012
Like Type.field? http://fantom.org/doc/sys/Type.html#field
fantlan Tue 19 Jun 2012
Thanks but no, i want to create a new type not something that exists
andy Tue 19 Jun 2012
You'll need to provide a bit more info - because all you need to do is create a new class/mixin (which I don't think is what you meant).
fantlan Thu 21 Jun 2012
its ok i managed in the end.thanks anyways!!