any type_of operator?

23 views
Skip to first unread message

Srirama Bhamidipati

unread,
Jul 1, 2018, 11:34:54 AM7/1/18
to GAMA
Hi 

Just wondering if there is any operator that can tell me the type of a variable in question. for example:

int i;
write type_of
(i) ; //results in int


Thank you
Srirama

Alexis Drogoul (IRD)

unread,
Jul 1, 2018, 11:17:24 PM7/1/18
to gama-p...@googlegroups.com
Hi,

I just added this operator in the latest nightly build of GAMA. 

Cheers
Alexis


Representative of IRD in Vietnam and Philippines 
http://en.vietnam.ird.fr
Senior Researcher, Deputy Director, UMI UMMISCO 209, IRD & UPMC, France. http://ummisco.fr
Lead architect, GAMA Platform, http://gama-platform.org
[Address]Appt. 103, Bldg 2G, Van Phuc Diplomatic Compound, 298 Kim Ma, Ba Dinh, Hanoi



--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Srirama Bhamidipati

unread,
Jul 2, 2018, 1:52:33 AM7/2/18
to GAMA
Thank you Alexis.


On Monday, July 2, 2018 at 5:17:24 AM UTC+2, Alexis Drogoul (IRD) wrote:
Hi,

I just added this operator in the latest nightly build of GAMA. 

Cheers
Alexis


Representative of IRD in Vietnam and Philippines 
http://en.vietnam.ird.fr
Senior Researcher, Deputy Director, UMI UMMISCO 209, IRD & UPMC, France. http://ummisco.fr
Lead architect, GAMA Platform, http://gama-platform.org
alexis....@ird.frhttp://goo.gl/4ewFdJ
[Vietnam]+84944455180[France]+33608698845
[Address]Appt. 103, Bldg 2G, Van Phuc Diplomatic Compound, 298 Kim Ma, Ba Dinh, Hanoi


Le 1 juil. 2018 à 22:34, Srirama Bhamidipati <b.sr...@gmail.com> a écrit :

Hi 

Just wondering if there is any operator that can tell me the type of a variable in question. for example:

int i;
write type_of
(i) ; //results in int


Thank you
Srirama

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platform+unsubscribe@googlegroups.com.

farzin.m...@flybits.com

unread,
Oct 6, 2018, 12:09:44 AM10/6/18
to GAMA
Hi, 

I get "The primitive or action 'type_of' cannot be resolved (either
   it is not defined or not accessible)" when I use type_of() operator. Were you able to use it Srirama? I'm using 1.8 RC.

Thank you,

Farzin

Srirama Bhamidipati

unread,
Oct 6, 2018, 12:21:45 AM10/6/18
to GAMA
Yes it works.

Srirama

Patrick Taillandier

unread,
Oct 6, 2018, 8:38:29 AM10/6/18
to gama-p...@googlegroups.com
HI,

I just tested it with GAMA 1.8 RC2, and it works.

Cheers,

Patrick

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.

Farzin

unread,
Oct 8, 2018, 9:26:37 PM10/8/18
to gama-p...@googlegroups.com
Ok great. Thank you
Reply all
Reply to author
Forward
0 new messages