[Pharo-users] Metaprogramming facilities

Guillaume Larcheveque guillaume.larcheveque at gmail.com
Mon May 2 11:43:27 EDT 2016


Select the class, right click on it:

[image: Images intégrées 1]

2016-05-02 17:35 GMT+02:00 Victor RENE <victor-rene.dev at outlook.com>:

> In the TinyBlog mini-project of the MOOC, we start by creating the model.
> However, since I basically finished the exercises, I wanted to go one step
> further and
> ask you guys, what is the correct way _not_ to write all gettters /
> setters for the fields.
>
>
> TBPost >> title
>     ^ title
> TBPost >> title: anObject
>     title := anObject
> TBPost >> text
>     ^ text
> TBPost >> text: anObject
>     text := anObject
> etc...
>
>
> Do you do it with macros / templates / something else ?
> I am having a bit of fun (although I would love that they unlock weeks 2
> to 7 for me). Thanks in advance.
>
> Victor RENE
> Software engineer,
> Game designer, Writer
>
> Blog: http://victor-rene.com
> Projects: http://logiqub.com
>
> tel: +33 6 26 83 61 76
> email: victor-rene at outlook.com
>
>



-- 
*Guillaume Larcheveque*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160502/a6c3915f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2016-05-02 at 17.42.21.png
Type: image/png
Size: 201505 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160502/a6c3915f/attachment.png>


More information about the Pharo-users mailing list