Function params having same name

26 views
Skip to first unread message

Mansour Ayouni

unread,
Jun 11, 2024, 7:03:06 AMJun 11
to The Ring Programming Language
Hello Mahmoud,

Today I discovered that Ring allows giving the same name to different function params...

As you see in the output of this sample, Ring will ignore all but the last one provided:

image.png


In Softanza, this caused me a subtle bug that took me a while to resolve...


Best,

Mansour



Mahmoud Fayed

unread,
Jun 11, 2024, 4:53:29 PMJun 11
to The Ring Programming Language
Hello Mansour

Thanks for the report :D

Greetings,
Mahmoud

Mansour Ayouni

unread,
Jun 11, 2024, 5:28:23 PMJun 11
to Mahmoud Fayed, The Ring Programming Language
That's great!!
Thank you Mahmoud.

Best,
Mansour

--

---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ring-lang/1adfe5fd-ddbf-4631-9a94-e8fdc22b4b84n%40googlegroups.com.

Mahmoud Fayed

unread,
Jun 11, 2024, 5:32:30 PMJun 11
to The Ring Programming Language
Hello Mansour

You are welcome :D

Greetings,
Mahmoud

Reply all
Reply to author
Forward
0 new messages