[cpl] [Tema 2] Obiecte ca parametrii
Cosmin Crecana
cosmincrecana at gmail.com
Fri Nov 18 20:20:36 EET 2016
Salut,
Nu reusesc sa imi dau seama daca atunci cand se defineste o metoda
aceasta primeste o referinta la obiectul primit ca parametru sau o copie
a acestei structuri.
O metoda de forma myMethod(String a) din clasa Main se va translata in:
1. define void @M4_Main_myMethod(%struct.TMain* %self, %struct.TString %a)
sau
2. define void @M4_Main_myMethod(%struct.TMain* %self, %struct.TString* %a)
?
Multumesc,
Cosmin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/cpl/attachments/20161118/a6c79da9/attachment.html>
More information about the cpl
mailing list